Geometry/tests/CMakeLists.txt
Karl-Wilfried Zimmer 6bbc91a7dc snap
2024-01-01 15:54:56 +01:00

14 lines
349 B
CMake

FetchContent_Declare(
doctest
GIT_REPOSITORY https://github.com/doctest/doctest.git
GIT_TAG v2.4.11)
FetchContent_MakeAvailable(doctest)
set(TESTFILES "dummytest.cpp")
add_executable(testlib test_utils.cpp "${TESTFILES}")
target_link_libraries(testlib PRIVATE Geometry doctest)
add_test(NAME testlibtest COMMAND testlib)