gd-tools/tests/CMakeLists.txt.FIXME

19 lines
549 B
Plaintext
Raw Permalink Normal View History

2024-02-04 18:24:04 +00:00
# Testing library
FetchContent_Declare(
catch
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v3.5.2)
FetchContent_MakeAvailable(catch)
# Adds Catch2::Catch2
include(Catch)
add_executable(tests tests_main.cpp)
target_compile_features(tests PRIVATE cxx_std_23)
# Should be linked to the rdricpp library, as well as the Catch2 testing library
target_link_libraries(tests PRIVATE cpr::cpr fmt::fmt nlohmann_json::nlohmann_json marisa rdricpp Catch2::Catch2WithMain)
catch_discover_tests(tests)
add_test(NAME Test COMMAND tests)