Skip to content

Commit e950407

Browse files
committed
tests: upgrading to Catch2.v3
1 parent b995e26 commit e950407

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ add_library(mytarget INTERFACE IMPORTED)
1818
target_link_libraries(mytarget INTERFACE
1919
${PROJECT_NAME}
2020
${PROJECT_NAME}::compiler_warnings
21-
Catch2::Catch2)
21+
Catch2::Catch2WithMain)
2222

2323
file(GLOB APP_SOURCES *.cpp)
2424

tests/cpp/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#define CATCH_CONFIG_MAIN // tells Catch to provide a main() - only do this in one cpp file
2-
#include <catch2/catch.hpp>
1+
#include <catch2/catch_all.hpp>
32

43
#include <cppcolormap.h>
54

0 commit comments

Comments
 (0)