diff --git a/CMakeLists.txt b/CMakeLists.txt index f0a08fa..639d53a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,4 +46,8 @@ enable_testing() add_executable(tests tests/tests.cpp tests/common/graph_tests.cpp) target_link_libraries(tests PRIVATE Catch2::Catch2WithMain) -target_include_directories(tests PRIVATE ${CMAKE_SOURCE_DIR}/tests) + +list(APPEND CMAKE_MODULE_PATH ${catch2_SOURCE_DIR}/extras) +include(CTest) +include(Catch) +catch_discover_tests(tests)