File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1- [submodule "third_party/Catch2 "]
2- path = third_party/Catch2
3- url = https://github.com/catchorg/Catch2.git
Original file line number Diff line number Diff line change 11project (tests VERSION 0.1.0)
22
3+ # Download and build Catch2 test framework
4+ Include (FetchContent)
5+ FetchContent_Declare(
6+ Catch2
7+ GIT_REPOSITORY https://github.com/catchorg/Catch2.git
8+ GIT_TAG v3.2.1
9+ )
10+ FetchContent_MakeAvailable(Catch2)
11+
312list (APPEND TEST_SOURCES main.cpp
413 test_dbc.cpp
514 test_utils.cpp)
615
7- include_directories (SYSTEM ${PROJECT_SOURCE_DIR} /third_party/Catch2/single_include)
8-
916add_executable (tests ${TEST_SOURCES} ${SOURCE} )
17+ target_link_libraries (tests PRIVATE Catch2::Catch2WithMain)
1018
1119add_custom_target (test
1220 COMMAND ${PROJECT_NAME}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments