tug/test/CMakeLists.txt
2022-08-24 09:05:12 +02:00

18 lines
377 B
CMake

include(FetchContent)
FetchContent_Declare(
DocTest
GIT_REPOSITORY https://github.com/doctest/doctest.git
GIT_TAG v2.4.9
)
FetchContent_MakeAvailable(DocTest)
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
)