2020-11-27 16:48:38 +00:00
|
|
|
enable_testing()
|
|
|
|
find_package(GTest REQUIRED)
|
|
|
|
|
|
|
|
include(GoogleTest)
|
|
|
|
|
2021-09-06 13:54:19 +00:00
|
|
|
file(GLOB_RECURSE sources CONFIGURE_DEPENDS "*.cpp")
|
|
|
|
|
|
|
|
add_executable(pacman_tests ${sources})
|
2020-11-28 17:00:10 +00:00
|
|
|
target_link_libraries(pacman_tests GTest::GTest libpacman)
|
2020-11-27 16:48:38 +00:00
|
|
|
|
2020-11-28 17:00:10 +00:00
|
|
|
gtest_discover_tests(pacman_tests TEST_PREFIX pacman:)
|
2020-11-29 18:28:42 +00:00
|
|
|
add_test(NAME monolithic COMMAND pacman_tests)
|