1
0

Register Catch2 tests with CTest

This commit is contained in:
JosiahWI
2023-01-31 08:42:35 -06:00
parent eb77d07f39
commit 850bf1a949
4 changed files with 27 additions and 1 deletions

View File

@@ -37,6 +37,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")
add_subdirectory(source/lib/catch2)
add_subdirectory(source/lib/tinygltf)