mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-13 03:18:23 +01:00
Add HDF5 to CMakeLists. Not sure if it is right place
This commit is contained in:
parent
caf35851b5
commit
d288b6193e
@ -16,7 +16,7 @@ list(APPEND CMAKE_MODULE_PATH "${POET_SOURCE_DIR}/CMake")
|
||||
get_poet_version()
|
||||
|
||||
find_package(MPI REQUIRED)
|
||||
|
||||
find_package(HDF5 REQUIRED)
|
||||
find_package(RRuntime REQUIRED)
|
||||
|
||||
add_subdirectory(src)
|
||||
|
||||
@ -91,7 +91,7 @@ file(READ "${PROJECT_SOURCE_DIR}/R_lib/ai_surrogate_model.R" R_AI_SURROGATE_LIB)
|
||||
configure_file(poet.hpp.in poet.hpp @ONLY)
|
||||
include_directories("${CMAKE_SOURCE_DIR}/ext/ai-surrogate-poet/include")
|
||||
add_executable(poet poet.cpp)
|
||||
target_link_libraries(poet PRIVATE POETLib MPI::MPI_C RRuntime CLI11::CLI11 ai naaice::middleware)
|
||||
target_link_libraries(poet PRIVATE POETLib MPI::MPI_C RRuntime CLI11::CLI11 ai naaice::middleware HDF5::HDF5)
|
||||
target_include_directories(poet PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
|
||||
add_executable(poet_init initializer.cpp)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user