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

@ -576,6 +576,10 @@ if(WIN32)
set_target_properties(IrrlichtMt PROPERTIES PREFIX "") # for DLL name
endif()
if((CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) AND BUILD_TESTING)
add_subdirectory(tests)
endif()
# Installation of library
install(TARGETS IrrlichtMt tinygltf
EXPORT IrrlichtMt-export