CMake update for version 3.20 (#292)

This commit is contained in:
Chuck Walbourn
2022-11-22 11:37:25 -08:00
committed by GitHub
parent 5935c67ebe
commit 781df59540
2 changed files with 22 additions and 0 deletions

View File

@@ -397,3 +397,10 @@ endif()
if(BUILD_TOOLS AND WIN32 AND (NOT WINDOWS_STORE))
set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT texconv)
endif()
#--- Test suite
include(CTest)
if(BUILD_TESTING AND WIN32 AND (NOT WINDOWS_STORE) AND (EXISTS "${CMAKE_CURRENT_LIST_DIR}/Tests/CMakeLists.txt"))
enable_testing()
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/Tests)
endif()