Skip to content

Commit

Permalink
Integrate tests with CTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Ortham committed Aug 9, 2024
1 parent 7fcdacb commit 35bbc28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
##############################

include(FetchContent)
include(GoogleTest)

set(BUILD_GMOCK OFF)
set(gtest_force_shared_crt ON)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 35bbc28

Please sign in to comment.