mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-16 18:52:25 +01:00
21 lines
381 B
CMake
21 lines
381 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
|
|
project(discover-tests-test
|
|
LANGUAGES CXX
|
|
)
|
|
|
|
add_executable(tests
|
|
register-tests.cpp
|
|
)
|
|
|
|
add_subdirectory(${CATCH2_PATH} catch2-build)
|
|
target_link_libraries(tests PRIVATE Catch2::Catch2WithMain)
|
|
|
|
if (CATCH_ENABLE_PCH)
|
|
target_precompile_headers(tests REUSE_FROM Catch2)
|
|
endif()
|
|
|
|
include(CTest)
|
|
include(Catch)
|
|
catch_discover_tests(tests)
|