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()
|
|
|
|
|
2019-10-16 15:51:48 +00:00
|
|
|
include(CMLibRequiredVariables)
|
2020-03-29 05:44:48 +00:00
|
|
|
include(CMLibGlobalFunctions)
|
2019-02-13 09:55:42 +00:00
|
|
|
include(CMLibGlobalVariables)
|
2019-02-12 16:31:17 +00:00
|
|
|
include(CMLibLSBInfo)
|
|
|
|
include(CMLibCompiler)
|
|
|
|
include(CMLibCompilerFlags)
|
2019-08-08 08:10:36 +00:00
|
|
|
include(CMLibDistCC)
|
2019-02-12 16:31:17 +00:00
|
|
|
include(CMLibCompilerFeaturesHPPGenerate)
|
2019-02-21 10:22:14 +00:00
|
|
|
include(CMLibFlagRemove)
|
2020-04-18 18:03:03 +00:00
|
|
|
include(CMLibCotire)
|
2020-03-30 08:09:25 +00:00
|
|
|
include(CMLibBuildTypes)
|
2019-02-12 16:31:17 +00:00
|
|
|
include(CMLibCommonTargetProperties)
|
|
|
|
include(CMLibCommonLibraryTarget)
|
2019-02-15 21:00:53 +00:00
|
|
|
include(CMLibCodeAnalysisPvsStudio)
|
2019-06-30 15:45:56 +00:00
|
|
|
include(CMLibCodeAnalysisClangAnalyze)
|
2019-06-15 13:59:08 +00:00
|
|
|
include(CMLibCodeAnalysisClangTidy)
|
|
|
|
include(CMLibCodeAnalysisClazy)
|
2019-10-08 13:15:27 +00:00
|
|
|
include(CMLibCodeCoverage)
|
2019-07-02 05:03:01 +00:00
|
|
|
include(CMLibSanitizers)
|
2019-02-12 16:31:17 +00:00
|
|
|
|
2019-07-19 07:55:17 +00:00
|
|
|
include(CMLibFormatSources)
|
2019-10-05 12:53:40 +00:00
|
|
|
include(CMLibDocDoxygen)
|
|
|
|
include(CMLibDocBreathe)
|
2019-02-12 16:31:17 +00:00
|
|
|
include(CMLibQtTranslation)
|
|
|
|
include(CMLibToday)
|
2020-04-01 18:40:58 +00:00
|
|
|
include(CMLibAuxilarySymlinks)
|
2019-02-12 16:31:17 +00:00
|
|
|
include(CMLibConfigHPPGenerate)
|
2020-04-14 09:14:05 +00:00
|
|
|
include(CMLibNinjaGeneratorHelper)
|
2020-04-10 20:24:38 +00:00
|
|
|
include(CMLibCPack)
|
2019-02-12 16:31:17 +00:00
|
|
|
include(CMLibUninstall)
|