add hdf5 checks and libraries

This commit is contained in:
Faruk D 2018-02-28 14:16:36 +01:00
parent 06aa95abe0
commit 8df6355697
2 changed files with 9 additions and 0 deletions

View File

@ -95,6 +95,10 @@ include_directories(${OpenBLAS_INCLUDE_DIR})
#find_package(GFortranLibs REQUIRED)
#include_directories(${GFORTRAN_INCLUDE_DIR})
#hdf5
find_package(HDF5 REQUIRED)
#glib
pkg_check_modules(GLIB_PKG glib-2.0)
if (GLIB_PKG_FOUND)
@ -154,6 +158,9 @@ message (STATUS "CFITSIO-LIBS .......... = ${CFITSIO_LIBRARIES}")
message (STATUS "WCSLIB-INC ........... = ${WCSLIB_INCLUDE_DIR}")
message (STATUS "WCSLIB-LIBS ........... = ${WCSLIB_LIBRARIES}")
message (STATUS "HDF5-INC ........... = ${HDF5_INCLUDE_DIRS}")
message (STATUS "HDF5-LIBS ........... = ${HDF5_LIBRARIES}")
#--------------------------------------- include directories

View File

@ -1,4 +1,5 @@
include_directories(${CASACORE_INCLUDE_DIR}/casacore)
include_directories(${HDF5_INCLUDE_DIRS})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../lib/Dirac)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../lib/Radio)
@ -27,6 +28,7 @@ target_link_libraries(sagecal
${WCSLIB_LIBRARIES}
${GLIB_PKG_LIBRARIES}
${LIBGFORTRAN_LIBRARIES}
${HDF5_LIBRARIES}
-lopenblas
-lgfortran
-lpthread