build: fetch doctest during configuration
This commit is contained in:
parent
85c9fc5be2
commit
fd7e2f5b63
@ -1,5 +1,15 @@
|
|||||||
add_library(doctest INTERFACE)
|
include(FetchContent)
|
||||||
target_include_directories(doctest INTERFACE doctest)
|
|
||||||
|
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)
|
add_executable(test setup.cpp testBoundaryCondition.cpp testDiffusion.cpp)
|
||||||
target_link_libraries(test doctest BTCSDiffusion)
|
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
|
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
|
||||||
#include "doctest.h"
|
#include <doctest/doctest.h>
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#include <grid/BTCSBoundaryCondition.hpp>
|
#include <grid/BTCSBoundaryCondition.hpp>
|
||||||
#include <doctest.h>
|
#include <doctest/doctest.h>
|
||||||
|
|
||||||
using namespace Diffusion;
|
using namespace Diffusion;
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#include <bits/stdint-uintn.h>
|
#include <bits/stdint-uintn.h>
|
||||||
#include <grid/BTCSBoundaryCondition.hpp>
|
#include <grid/BTCSBoundaryCondition.hpp>
|
||||||
#include <diffusion/BTCSDiffusion.hpp>
|
#include <diffusion/BTCSDiffusion.hpp>
|
||||||
#include <doctest.h>
|
#include <doctest/doctest.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
using namespace Diffusion;
|
using namespace Diffusion;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user