From 8ed47965bd946d2f36a15afee26bf785205b96d9 Mon Sep 17 00:00:00 2001 From: Isaac Da Pena <56054255+idapena@users.noreply.github.com> Date: Thu, 15 Feb 2024 23:54:14 -0400 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)