diff --git a/README.rst b/README.rst index ee74f43b8..832c1262b 100644 --- a/README.rst +++ b/README.rst @@ -74,7 +74,7 @@ Dependencies * Qt >5.15 * CMake 3.8 -* Catch2 +* Catch2 (you might need to add `Catch2_DIR` to the system variable, pointing to the folder containing `Catch2Config.cmake`) Current State (v3) diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index d7fbfcca7..0d39af5c9 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -1,5 +1,5 @@ if(BUILD_TESTING) - find_package(Catch2 QUIET) + find_package(Catch2 2.13.7 QUIET) if(NOT Catch2_FOUND) add_subdirectory(Catch2) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 681251330..98a8c306a 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -4,6 +4,8 @@ else() find_package(Qt5 COMPONENTS Test) endif() +find_package(Catch2) + add_executable(test_nodes test_main.cpp src/TestAbstractGraphModel.cpp