2019-02-12 16:31:17 +00:00
|
|
|
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
|
|
|
|
cmake_policy(VERSION 3.0.2..3.7)
|
|
|
|
|
|
|
|
if(CMAKE_INSTALL_PREFIX STREQUAL PROJECT_BINARY_DIR)
|
|
|
|
message(FATAL_ERROR "Cannot install into build directory")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
include(CMLibDisableInSourceBuild)
|
|
|
|
include(CMakeParseArguments)
|
|
|
|
include(GNUInstallDirs)
|
2019-03-05 22:22:16 +00:00
|
|
|
if(DEFINED ENV{DEB_HOST_MULTIARCH})
|
|
|
|
string(APPEND CMAKE_INSTALL_LIBDIR "/$ENV{DEB_HOST_MULTIARCH}")
|
|
|
|
endif()
|
2019-02-12 16:31:17 +00:00
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
|
|
|
|
|
|
|
include(CMLibProjectVersion)
|
|
|
|
set_project_version()
|
|
|
|
|
|
|
|
include(CMLibOrganizationName)
|
|
|
|
set_organization_name()
|
|
|
|
|
2019-02-13 09:55:42 +00:00
|
|
|
include(CMLibGlobalVariables)
|
2019-02-12 16:31:17 +00:00
|
|
|
include(CMLibLSBInfo)
|
|
|
|
include(CMLibCompiler)
|
|
|
|
include(CMLibCompilerFlags)
|
|
|
|
include(CMLibCompilerFeaturesHPPGenerate)
|
2019-02-21 10:22:14 +00:00
|
|
|
include(CMLibFlagRemove)
|
2019-02-12 16:31:17 +00:00
|
|
|
include(CMLibCommonTargetProperties)
|
|
|
|
include(CMLibCommonLibraryTarget)
|
|
|
|
include(CMLibBuildTypes)
|
2019-02-15 21:00:53 +00:00
|
|
|
include(CMLibCodeAnalysisPvsStudio)
|
2019-02-19 09:42:48 +00:00
|
|
|
include(cotire)
|
2019-02-12 16:31:17 +00:00
|
|
|
|
2019-03-31 10:52:29 +00:00
|
|
|
include(CMLibBreathe)
|
2019-02-12 16:31:17 +00:00
|
|
|
include(CMLibQtTranslation)
|
|
|
|
include(CMLibToday)
|
|
|
|
include(CMLibConfigHPPGenerate)
|
|
|
|
include(CMLibCPackSources)
|
|
|
|
include(CMLibUninstall)
|
|
|
|
|