mirror of
https://git.gfz-potsdam.de/naaice/tug.git
synced 2025-12-13 17:38:23 +01:00
build: fetch doctest during configuration
This commit is contained in:
parent
85c9fc5be2
commit
fd7e2f5b63
@ -1,5 +1,15 @@
|
||||
add_library(doctest INTERFACE)
|
||||
target_include_directories(doctest INTERFACE doctest)
|
||||
include(FetchContent)
|
||||
|
||||
FetchContent_Declare(
|
||||
DocTest
|
||||
GIT_REPOSITORY https://github.com/doctest/doctest.git
|
||||
GIT_TAG v2.4.9
|
||||
)
|
||||
|
||||
FetchContent_MakeAvailable(DocTest)
|
||||
|
||||
#add_library(doctest INTERFACE)
|
||||
#target_include_directories(doctest INTERFACE doctest)
|
||||
|
||||
add_executable(test setup.cpp testBoundaryCondition.cpp testDiffusion.cpp)
|
||||
target_link_libraries(test doctest BTCSDiffusion)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,2 +1,2 @@
|
||||
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
|
||||
#include "doctest.h"
|
||||
#include <doctest/doctest.h>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#include <grid/BTCSBoundaryCondition.hpp>
|
||||
#include <doctest.h>
|
||||
#include <doctest/doctest.h>
|
||||
|
||||
using namespace Diffusion;
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#include <bits/stdint-uintn.h>
|
||||
#include <grid/BTCSBoundaryCondition.hpp>
|
||||
#include <diffusion/BTCSDiffusion.hpp>
|
||||
#include <doctest.h>
|
||||
#include <doctest/doctest.h>
|
||||
#include <vector>
|
||||
|
||||
using namespace Diffusion;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user