cmlib/CMLibCommon.cmake

51 lines
1.3 KiB
CMake
Raw Normal View History

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)
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(CMLibRequiredVariables)
2020-03-29 05:44:48 +00:00
include(CMLibGlobalFunctions)
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)
include(CMLibFlagRemove)
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)
include(CMLibCodeAnalysisClangAnalyze)
include(CMLibCodeAnalysisClangTidy)
include(CMLibCodeAnalysisClazy)
2019-10-08 13:15:27 +00:00
include(CMLibCodeCoverage)
include(CMLibSanitizers)
2019-02-19 09:42:48 +00:00
include(cotire)
2019-02-12 16:31:17 +00:00
2019-07-19 07:55:17 +00:00
include(CMLibFormatSources)
include(CMLibDocDoxygen)
include(CMLibDocBreathe)
2019-02-12 16:31:17 +00:00
include(CMLibQtTranslation)
include(CMLibToday)
include(CMLibAuxilarySymlinks)
2019-02-12 16:31:17 +00:00
include(CMLibConfigHPPGenerate)
include(CMLibNinjaGeneratorHelper)
include(CMLibCPack)
2019-02-12 16:31:17 +00:00
include(CMLibUninstall)