From 35bbc28dba281b349edd64aa53d4dcd01523b0f3 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Fri, 9 Aug 2024 19:16:01 +0100 Subject: [PATCH] Integrate tests with CTest --- cmake/tests.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/tests.cmake b/cmake/tests.cmake index c94c6305..db59fe1f 100644 --- a/cmake/tests.cmake +++ b/cmake/tests.cmake @@ -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