diff options
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/tests.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f9390a9..e36b290 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,7 @@ set(TESTDIR tests) # test executable add_executable(tests ${SRCS} ${TESTDIR}/tests.cc) -target_link_libraries(tests PRIVATE Catch2::Catch2 PRIVATE Python3::Python) +target_link_libraries(tests PRIVATE Catch2::Catch2WithMain PRIVATE Python3::Python) # test discovery include(CTest) diff --git a/tests/tests.cc b/tests/tests.cc index d866172..8a23c4d 100644 --- a/tests/tests.cc +++ b/tests/tests.cc @@ -1,6 +1,6 @@ #define CATCH_CONFIG_MAIN -#include "catch2/catch.hpp" #include "fact.h" +#include<catch2/catch_test_macros.hpp> TEST_CASE( "factorials are computed", "[factorial]") { |