14 lines
349 B
CMake
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)
|