Commit 9e5613d0 authored by Junmin Gu's avatar Junmin Gu

changed sDataElevator to sHDF5

added include support when ENABLE_HDF5 is on
parent 0cafed04
......@@ -74,6 +74,9 @@ endif()
if (ENABLE_ADIOS1)
include(sADIOS1)
endif()
if (ENABLE_HDF5)
include(sHDF5)
endif()
if (ENABLE_CONDUIT)
include(sConduit)
endif()
......
......@@ -7,12 +7,12 @@ endif()
message(STATUS "HDF5 found? ${HDF5_FOUND} ${HDF5_INCLUDE_DIRS} ${HDF5_INCLUDE_DIR}")
if(HDF5_FOUND)
add_library(sDataElevator INTERFACE)
target_link_libraries(sDataElevator INTERFACE ${HDF5_LIBRARIES})
target_include_directories(sDataElevator SYSTEM INTERFACE ${HDF5_INCLUDE_DIRS})
add_library(sHDF5 INTERFACE)
target_link_libraries(sHDF5 INTERFACE ${HDF5_LIBRARIES})
target_include_directories(sHDF5 SYSTEM INTERFACE ${HDF5_INCLUDE_DIRS})
install(TARGETS sDataElevator EXPORT sDataElevator)
install(EXPORT sDataElevator DESTINATION lib/cmake EXPORT_LINK_INTERFACE_LIBRARIES)
install(TARGETS sHDF5 EXPORT sHDF5)
install(EXPORT sHDF5 DESTINATION lib/cmake EXPORT_LINK_INTERFACE_LIBRARIES)
endif()
......
......@@ -8,7 +8,7 @@ endif()
if(ENABLE_HDF5)
add_executable(HDF5EndPoint HDF5EndPoint.cpp)
target_link_libraries(HDF5EndPoint PRIVATE opts sensei timer sDataElevator sMPI)
target_link_libraries(HDF5EndPoint PRIVATE opts sensei timer sHDF5 sMPI)
install(TARGETS HDF5EndPoint
RUNTIME DESTINATION bin)
......
......@@ -38,7 +38,7 @@ if (ENABLE_SENSEI)
if (ENABLE_HDF5)
list(APPEND senseiCore_sources HDF5DataAdaptor.cxx HDF5AnalysisAdaptor.cxx
HDF5Schema.cxx)
list(APPEND senseiCore_libs sDataElevator)
list(APPEND senseiCore_libs sHDF5)
endif()
if (ENABLE_VTK_ACCELERATORS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment