Skip to content

Commit b48f473

Browse files
committed
use catch instead of add_test
1 parent 6b4061c commit b48f473

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ FetchContent_Declare(
88
GIT_TAG v3.2.1
99
)
1010
FetchContent_MakeAvailable(Catch2)
11+
include(Catch)
1112

1213
list(APPEND TEST_SOURCES
1314
test_dbc.cpp
@@ -20,5 +21,4 @@ target_sources(tests INTERFACE FILE_SET HEADERS
2021
TYPE HEADERS
2122
BASE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}
2223
FILES defines.hpp)
23-
24-
add_test(NAME tests COMMAND $<TARGET_FILE:tests>)
24+
catch_discover_tests(tests)

0 commit comments

Comments
 (0)