cmlib/CMLibCommon.cmake

61 lines
1.7 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()
if(CMAKE_INSTALL_PREFIX STREQUAL PROJECT_SOURCE_DIR)
message(FATAL_ERROR "Cannot install into source directory")
endif()
2019-02-12 16:31:17 +00:00
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_SOURCE_FILE_EXTENSIONS ${CMAKE_CXX_SOURCE_FILE_EXTENSIONS};tpp;tcc)
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)
include(CMLibHighPrecisionMath)
2021-05-30 20:07:16 +00:00
include(CMLibGenerateCompilerFeaturesHPP)
include(CMLibFlagRemove)
2020-04-18 18:03:03 +00:00
include(CMLibCotire)
2020-03-30 08:09:25 +00:00
include(CMLibBuildTypes)
include(CMLibDebugOutput)
2019-02-12 16:31:17 +00:00
include(CMLibCommonTargetProperties)
include(CMLibCommonLibraryTarget)
include(CMLibPkgConfig)
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-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(CMLibGit)
include(CMLibAuxilarySymlinks)
2021-05-30 20:07:16 +00:00
include(CMLibGeneratePrivateConfigHPP)
include(CMLibNinjaGeneratorHelper)
include(CMLibExternalProject)
include(CMLibCPack)
2019-02-12 16:31:17 +00:00
include(CMLibUninstall)