cmlib/CMLibCommon.cmake

48 lines
1.2 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)
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)
2019-02-12 16:31:17 +00:00
include(CMLibCommonTargetProperties)
include(CMLibCommonLibraryTarget)
include(CMLibBuildTypes)
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(CMLibConfigHPPGenerate)
include(CMLibCPackSources)
include(CMLibUninstall)