Commit b07496c3 authored by Rupert Nash's avatar Rupert Nash
Browse files

Add HDF5 to the cmake

parent a9a6be46
......@@ -177,6 +177,7 @@ INCLUDE (ThirdPartyPETSc)
INCLUDE (ThirdPartyVTK)
INCLUDE (ThirdPartyQT4)
INCLUDE (ThirdPartySMV)
INCLUDE (ThirdPartyHDF5)
INCLUDE (Doxygen)
......
########################################################################
#
# ThirdParty configuration for Nektar++
#
# HDF5
#
########################################################################
OPTION(NEKTAR_USE_HDF5
"Enable HDF5 I/O support." OFF)
IF (NEKTAR_USE_HDF5)
INCLUDE(FindHDF5)
INCLUDE_DIRECTORIES(SYSTEM ${HDF5_INCLUDE_DIRS})
ENDIF (NEKTAR_USE_HDF5)
\ No newline at end of file
......@@ -454,5 +454,10 @@ IF( NEKTAR_USE_PETSC )
ADD_DEPENDENCIES(LibUtilities petsc-3.5.2)
ENDIF( NEKTAR_USE_PETSC )
# HDF5
IF( NEKTAR_USE_HDF5 )
TARGET_LINK_LIBRARIES(LibUtilities LINK_PRIVATE ${HDF5_LIBRARIES})
ENDIF( NEKTAR_USE_HDF5 )
INSTALL(FILES ${ExpressionTemplates} DESTINATION ${NEKTAR_INCLUDE_DIR}/ExpressionTemplates COMPONENT dev)
INSTALL(DIRECTORY ./ DESTINATION ${NEKTAR_INCLUDE_DIR}/LibUtilities COMPONENT dev FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp")
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