13 lines
394 B
CMake
13 lines
394 B
CMake
Include(FetchContent)
|
|
|
|
FetchContent_Declare(
|
|
Catch2
|
|
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
|
|
GIT_TAG v2.13.7)
|
|
FetchContent_MakeAvailable(Catch2)
|
|
|
|
project(tests)
|
|
file(GLOB UNIT_TESTS unit_*.cpp)
|
|
file(GLOB INTEGRATION_TESTS int_*.cpp)
|
|
add_executable(tests main.cpp ${UNIT_TESTS} ${INTEGRATION_TESTS})
|
|
target_link_libraries(tests daggy stdc++fs Catch2::Catch2) |