Update CMakeLists.txt and include headers in test files

This commit is contained in:
Max Lübke 2024-03-06 11:59:18 +01:00
parent a17f40d31c
commit 5ddc239499
4 changed files with 9 additions and 6 deletions

View File

@ -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)

View File

@ -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;

View File

@ -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") {

View File

@ -1,6 +1,6 @@
#include <doctest/doctest.h>
#include "poet/Rounding.hpp"
#include <Chemistry/SurrogateModels/Rounding.hpp>
TEST_CASE("Rounding") {
constexpr int signif = 3;