Move CTest to test entry (#1181)

This commit is contained in:
Jelin
2023-03-22 00:24:19 +08:00
committed by GitHub
parent 987a604256
commit 74f63c1181

View File

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