1
0

Register Catch2 tests with CTest

This commit is contained in:
JosiahWI
2023-01-31 08:42:35 -06:00
committed by Josiah VanderZee
parent 030abc7b04
commit 246ee9c3ca
4 changed files with 28 additions and 0 deletions

View File

@@ -33,6 +33,10 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type: Debug or Release" FORCE)
endif()
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
include(CTest)
endif()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
enable_testing()