1
0
This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
modern_cpp_tutorial/tests/CMakeLists.txt

15 lines
353 B
CMake
Raw Permalink Normal View History

2023-10-20 08:59:30 +00:00
FetchContent_Declare(
catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v3.4.0)
FetchContent_MakeAvailable(catch2)
add_executable(dummy_tests dummy.cpp)
target_compile_features(dummy_tests PRIVATE cxx_std_20)
target_link_libraries(dummy_tests PRIVATE Catch2::Catch2WithMain)
include(Catch)
catch_discover_tests(dummy_tests)