Integrate tests with CTest

This commit is contained in:
Oliver Hamlet
2024-08-09 19:16:01 +01:00
parent 7fcdacbe0c
commit 35bbc28dba
+4
View File
@@ -3,6 +3,7 @@
##############################
include(FetchContent)
include(GoogleTest)
set(BUILD_GMOCK OFF)
set(gtest_force_shared_crt ON)
@@ -125,6 +126,9 @@ add_executable(libloot_tests ${LIBLOOT_INTERFACE_TESTS_ALL_SOURCES})
add_dependencies(libloot_tests loot)
target_link_libraries(libloot_tests PRIVATE loot Boost::headers GTest::gtest_main)
enable_testing()
gtest_discover_tests(libloot_internals_tests)
gtest_discover_tests(libloot_tests)
##############################
# Set Target-Specific Flags