Move CTest to test entry

This commit is contained in:
jelin 2023-03-21 22:09:12 +08:00
parent 987a604256
commit eea23f0853

View File

@ -18,7 +18,6 @@ include(CMakePackageConfigHelpers)
include(CMakeDependentOption) include(CMakeDependentOption)
include(CheckCXXCompilerFlag) include(CheckCXXCompilerFlag)
include(GNUInstallDirs) include(GNUInstallDirs)
include(CTest)
option(YAML_CPP_BUILD_CONTRIB "Enable yaml-cpp contrib in library" ON) option(YAML_CPP_BUILD_CONTRIB "Enable yaml-cpp contrib in library" ON)
option(YAML_CPP_BUILD_TOOLS "Enable parse tools" ON) option(YAML_CPP_BUILD_TOOLS "Enable parse tools" ON)
@ -179,6 +178,7 @@ endif()
unset(CONFIG_EXPORT_DIR) unset(CONFIG_EXPORT_DIR)
if(YAML_CPP_BUILD_TESTS) if(YAML_CPP_BUILD_TESTS)
include(CTest)
add_subdirectory(test) add_subdirectory(test)
endif() endif()