File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,11 +55,27 @@ file(GLOB ARGPARSE_FILES ${CMAKE_SOURCE_DIR}/argparse/*.cpp)
5555
5656add_executable (next ${SRC_FILES} ${ARGPARSE_FILES} )
5757
58+ # ============================
59+ # OpenMP
60+ # ============================
5861find_package (OpenMP QUIET )
59-
6062if (OpenMP_CXX_FOUND)
6163 message (STATUS "OpenMP detected — enabling multithreading." )
6264 target_link_libraries (next PRIVATE OpenMP::OpenMP_CXX )
6365else ()
6466 message (STATUS "OpenMP not found — building in single-threaded mode." )
6567endif ()
68+
69+ # ============================
70+ # HDF5 (raw C API)
71+ # ============================
72+ find_package (HDF5 REQUIRED COMPONENTS C HL )
73+
74+ if (HDF5_FOUND)
75+ message (STATUS "HDF5 detected — enabling snapshot loader." )
76+ include_directories (${HDF5_INCLUDE_DIRS} )
77+ target_link_libraries (next PRIVATE ${HDF5_LIBRARIES} )
78+ else ()
79+ message (FATAL_ERROR "HDF5 not found — please install libhdf5-dev or equivalent." )
80+ endif ()
81+
You can’t perform that action at this time.
0 commit comments