From 48f49aae72f1d5b8d2c131cbc1dc336ab9bd3a61 Mon Sep 17 00:00:00 2001 From: Taiguara Tupinambas Date: Tue, 5 Aug 2025 16:05:32 -0300 Subject: [PATCH 1/3] adds find_package(Catch2) to test_nodes CMakeLists and instrucftion for Catch2_DIR --- README.rst | 2 +- test/CMakeLists.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index ee74f43b8..c23e26715 100644 --- a/README.rst +++ b/README.rst @@ -74,7 +74,7 @@ Dependencies * Qt >5.15 * CMake 3.8 -* Catch2 +* Catch2 (add `Catch2_DIR` to the system variable, pointing to the folder containing `Catch2Config.cmake`) Current State (v3) 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 From 6fa78ed7c92aa028273467f7512f2ebea7cf7310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Taiguara=20Tupinamb=C3=A1s?= Date: Wed, 6 Aug 2025 13:34:36 -0300 Subject: [PATCH 2/3] adds version to Catch2 due to compatibility issues --- external/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) From 1354a06403384867be73f83dfa2ee6008585a755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Taiguara=20Tupinamb=C3=A1s?= Date: Wed, 6 Aug 2025 13:36:01 -0300 Subject: [PATCH 3/3] improves instructions to Catch2 dependency --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index c23e26715..832c1262b 100644 --- a/README.rst +++ b/README.rst @@ -74,7 +74,7 @@ Dependencies * Qt >5.15 * CMake 3.8 -* Catch2 (add `Catch2_DIR` to the system variable, pointing to the folder containing `Catch2Config.cmake`) +* Catch2 (you might need to add `Catch2_DIR` to the system variable, pointing to the folder containing `Catch2Config.cmake`) Current State (v3)