cmlib/CMLibCommon.cmake

39 lines
950 B
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)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
include(CMLibProjectVersion)
set_project_version()
include(CMLibOrganizationName)
set_organization_name()
include(CMLibGlobalVariables)
2019-02-12 16:31:17 +00:00
include(CMLibInstallInOpt)
include(CMLibLSBInfo)
include(CMLibCompiler)
include(CMLibCompilerFlags)
include(CMLibCompilerFeaturesHPPGenerate)
include(CMLibCommonTargetProperties)
include(CMLibCommonLibraryTarget)
include(CMLibFlagRemove)
include(CMLibBuildTypes)
include(CMLibQtTranslation)
include(CMLibToday)
include(CMLibConfigHPPGenerate)
include(CMLibCPackSources)
include(CMLibUninstall)