Поддержка cotire
This commit is contained in:
parent
a1765526f8
commit
81b3a19a55
@ -27,6 +27,7 @@ include(CMLibCompilerFlags)
|
|||||||
include(CMLibDistCC)
|
include(CMLibDistCC)
|
||||||
include(CMLibCompilerFeaturesHPPGenerate)
|
include(CMLibCompilerFeaturesHPPGenerate)
|
||||||
include(CMLibFlagRemove)
|
include(CMLibFlagRemove)
|
||||||
|
include(CMLibCotire)
|
||||||
include(CMLibBuildTypes)
|
include(CMLibBuildTypes)
|
||||||
include(CMLibCommonTargetProperties)
|
include(CMLibCommonTargetProperties)
|
||||||
include(CMLibCommonLibraryTarget)
|
include(CMLibCommonLibraryTarget)
|
||||||
@ -36,7 +37,6 @@ include(CMLibCodeAnalysisClangTidy)
|
|||||||
include(CMLibCodeAnalysisClazy)
|
include(CMLibCodeAnalysisClazy)
|
||||||
include(CMLibCodeCoverage)
|
include(CMLibCodeCoverage)
|
||||||
include(CMLibSanitizers)
|
include(CMLibSanitizers)
|
||||||
include(cotire)
|
|
||||||
|
|
||||||
include(CMLibFormatSources)
|
include(CMLibFormatSources)
|
||||||
include(CMLibDocDoxygen)
|
include(CMLibDocDoxygen)
|
||||||
|
@ -69,6 +69,9 @@ function(common_target_properties target)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set_target_properties(${target} PROPERTIES COTIRE_ENABLE_PRECOMPILED_HEADER ${CMLIB_COTIRE_ENABLE_PRECOMPILED_HEADER})
|
||||||
|
set_target_properties(${target} PROPERTIES COTIRE_ADD_UNITY_BUILD ${CMLIB_COTIRE_ADD_UNITY_BUILD})
|
||||||
|
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL Profile)
|
if(CMAKE_BUILD_TYPE STREQUAL Profile)
|
||||||
target_compile_definitions(${target} ${__visibility} PROFILE)
|
target_compile_definitions(${target} ${__visibility} PROFILE)
|
||||||
elseif(CMAKE_BUILD_TYPE STREQUAL Debug)
|
elseif(CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||||
|
Loading…
Reference in New Issue
Block a user