mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-15 12:28:22 +01:00
feat: implement data clustering using PHT feat: implement interpolation refactor: use named vector for DHT species definition and significant digits data: remove unusable input scripts data: move Phreeqc database to benchmark dir refactor: rename dolomite benchmark directory refactor: remove DHT prop type from input script
26 lines
797 B
CMake
26 lines
797 B
CMake
file(GLOB_RECURSE poet_lib_SRC
|
|
CONFIGURE_DEPENDS
|
|
"*.cpp" "*.c")
|
|
|
|
add_library(poet_lib ${poet_lib_SRC})
|
|
target_include_directories(poet_lib PUBLIC ${PROJECT_SOURCE_DIR}/include)
|
|
target_link_libraries(poet_lib PUBLIC
|
|
MPI::MPI_CXX ${MATH_LIBRARY} RRuntime PhreeqcRM tug)
|
|
|
|
target_compile_definitions(poet_lib PUBLIC STRICT_R_HEADERS OMPI_SKIP_MPICXX)
|
|
|
|
mark_as_advanced(PHREEQCRM_BUILD_MPI PHREEQCRM_DISABLE_OPENMP)
|
|
set(PHREEQCRM_DISABLE_OPENMP ON CACHE BOOL "" FORCE)
|
|
|
|
option(POET_DHT_DEBUG "Build with DHT debug info" OFF)
|
|
|
|
if(POET_DHT_DEBUG)
|
|
target_compile_definitions(poet_lib PRIVATE DHT_STATISTICS)
|
|
endif()
|
|
|
|
option(POET_PHT_ADDITIONAL_INFO "Enables additional information in the PHT" OFF)
|
|
|
|
if (POET_PHT_ADDITIONAL_INFO)
|
|
target_compile_definitions(poet_lib PRIVATE POET_PHT_ADD)
|
|
endif()
|