Geometry/tests/CMakeLists.txt

14 lines
349 B
CMake
Raw Permalink Normal View History

2023-12-31 19:17:56 +01:00
FetchContent_Declare(
2024-01-01 15:23:51 +01:00
doctest
GIT_REPOSITORY https://github.com/doctest/doctest.git
GIT_TAG v2.4.11)
FetchContent_MakeAvailable(doctest)
2023-12-31 19:17:56 +01:00
2024-01-01 15:23:51 +01:00
set(TESTFILES "dummytest.cpp")
2023-12-31 19:17:56 +01:00
2024-01-01 15:23:51 +01:00
add_executable(testlib test_utils.cpp "${TESTFILES}")
target_link_libraries(testlib PRIVATE Geometry doctest)
2023-12-31 19:17:56 +01:00
2024-01-01 15:54:56 +01:00
add_test(NAME testlibtest COMMAND testlib)