mirror of
https://git.gfz-potsdam.de/naaice/tug.git
synced 2025-12-15 18:38:23 +01:00
Update doctest library and fix target link
This commit is contained in:
parent
3ffa0ef624
commit
f71bf2371f
@ -1,18 +1,7 @@
|
||||
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()
|
||||
find_package(doctest REQUIRED)
|
||||
|
||||
add_executable(testTug setup.cpp testSimulation.cpp testGrid.cpp testFTCS.cpp testBoundary.cpp)
|
||||
target_link_libraries(testTug doctest tug)
|
||||
target_link_libraries(testTug doctest::doctest tug)
|
||||
|
||||
# get relative path of the CSV file
|
||||
get_filename_component(testSimulationCSV "FTCS_11_11_7000.csv" REALPATH)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user