mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-13 03:18:23 +01:00
Update CMakeLists.txt and include headers in test files
This commit is contained in:
parent
a17f40d31c
commit
5ddc239499
@ -3,7 +3,8 @@ file(GLOB test_SRC
|
||||
"*.cpp" "*.c")
|
||||
|
||||
add_executable(testPOET ${test_SRC})
|
||||
target_link_libraries(testPOET doctest poet_lib)
|
||||
target_link_libraries(testPOET doctest poetlib)
|
||||
target_include_directories(testPOET PRIVATE "${PROJECT_SOURCE_DIR}/src")
|
||||
|
||||
get_filename_component(TEST_RInsideSourceFile "RInsidePOET_funcs.R" REALPATH)
|
||||
configure_file(testDataStructures.hpp.in testDataStructures.hpp)
|
||||
|
||||
@ -5,11 +5,12 @@
|
||||
#include <cstdint>
|
||||
#include <doctest/doctest.h>
|
||||
#include <iostream>
|
||||
#include <poet/DataStructures.hpp>
|
||||
#include <poet/RInsidePOET.hpp>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <Base/RInsidePOET.hpp>
|
||||
#include <DataStructures/DataStructures.hpp>
|
||||
|
||||
#include "testDataStructures.hpp"
|
||||
|
||||
using namespace poet;
|
||||
|
||||
@ -1,11 +1,12 @@
|
||||
#include <Rcpp.h>
|
||||
#include <cstddef>
|
||||
#include <doctest/doctest.h>
|
||||
#include <poet/DataStructures.hpp>
|
||||
#include <poet/RInsidePOET.hpp>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <Base/RInsidePOET.hpp>
|
||||
#include <DataStructures/DataStructures.hpp>
|
||||
|
||||
#include "testDataStructures.hpp"
|
||||
|
||||
TEST_CASE("NamedVector") {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#include <doctest/doctest.h>
|
||||
|
||||
#include "poet/Rounding.hpp"
|
||||
#include <Chemistry/SurrogateModels/Rounding.hpp>
|
||||
|
||||
TEST_CASE("Rounding") {
|
||||
constexpr int signif = 3;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user