diff options
author | Siddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com> | 2025-03-01 20:26:44 -0500 |
---|---|---|
committer | Siddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com> | 2025-03-01 20:26:44 -0500 |
commit | 510ba64929cd7beb002508936fed9af4215a5d94 (patch) | |
tree | 5e47000b01d7c274dedfda349ed83304f03bf36f | |
parent | 428cdf3d8be3d46ca071967596083da98840fbbd (diff) |
windows environment fix, catch2 version change changes included
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | tests/tests.cc | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 03f0ca3..2029ba0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ cmake_minimum_required(VERSION 3.5) project(risc_vector) +#set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + # cpp standard set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) @@ -28,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]") { |