mirror of
https://git.gfz-potsdam.de/naaice/tug.git
synced 2025-12-14 09:58:22 +01:00
21 lines
443 B
CMake
21 lines
443 B
CMake
find_library(DOCTEST_LIB doctest)
|
|
|
|
if(NOT DOCTEST_LIB)
|
|
include(FetchContent)
|
|
|
|
FetchContent_Declare(
|
|
DocTest
|
|
GIT_REPOSITORY https://github.com/doctest/doctest.git
|
|
GIT_TAG v2.4.9)
|
|
|
|
FetchContent_MakeAvailable(DocTest)
|
|
endif()
|
|
|
|
add_executable(testTug setup.cpp testBoundaryCondition.cpp testDiffusion.cpp)
|
|
target_link_libraries(testTug doctest tug)
|
|
|
|
add_custom_target(
|
|
check
|
|
COMMAND $<TARGET_FILE:testTug>
|
|
DEPENDS testTug)
|