2020-11-27 16:48:38 +00:00
|
|
|
enable_testing()
|
2021-09-11 08:09:59 +00:00
|
|
|
find_package(Catch2 REQUIRED)
|
2020-11-27 16:48:38 +00:00
|
|
|
|
2021-09-06 13:54:19 +00:00
|
|
|
file(GLOB_RECURSE sources CONFIGURE_DEPENDS "*.cpp")
|
|
|
|
|
|
|
|
add_executable(pacman_tests ${sources})
|
2021-09-11 08:09:59 +00:00
|
|
|
target_link_libraries(pacman_tests Catch2::Catch2 libpacman)
|
2021-10-05 13:46:06 +00:00
|
|
|
|
|
|
|
# This setup the tests on CI. We disable the AI tests
|
|
|
|
# because you will have to implement them.
|
2021-10-19 07:47:02 +00:00
|
|
|
add_test(NAME pacman_tests COMMAND pacman_tests)
|