add hdf5 checks and libraries
This commit is contained in:
parent
06aa95abe0
commit
8df6355697
|
@ -95,6 +95,10 @@ include_directories(${OpenBLAS_INCLUDE_DIR})
|
||||||
#find_package(GFortranLibs REQUIRED)
|
#find_package(GFortranLibs REQUIRED)
|
||||||
#include_directories(${GFORTRAN_INCLUDE_DIR})
|
#include_directories(${GFORTRAN_INCLUDE_DIR})
|
||||||
|
|
||||||
|
#hdf5
|
||||||
|
find_package(HDF5 REQUIRED)
|
||||||
|
|
||||||
|
|
||||||
#glib
|
#glib
|
||||||
pkg_check_modules(GLIB_PKG glib-2.0)
|
pkg_check_modules(GLIB_PKG glib-2.0)
|
||||||
if (GLIB_PKG_FOUND)
|
if (GLIB_PKG_FOUND)
|
||||||
|
@ -154,6 +158,9 @@ message (STATUS "CFITSIO-LIBS .......... = ${CFITSIO_LIBRARIES}")
|
||||||
message (STATUS "WCSLIB-INC ........... = ${WCSLIB_INCLUDE_DIR}")
|
message (STATUS "WCSLIB-INC ........... = ${WCSLIB_INCLUDE_DIR}")
|
||||||
message (STATUS "WCSLIB-LIBS ........... = ${WCSLIB_LIBRARIES}")
|
message (STATUS "WCSLIB-LIBS ........... = ${WCSLIB_LIBRARIES}")
|
||||||
|
|
||||||
|
message (STATUS "HDF5-INC ........... = ${HDF5_INCLUDE_DIRS}")
|
||||||
|
message (STATUS "HDF5-LIBS ........... = ${HDF5_LIBRARIES}")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#--------------------------------------- include directories
|
#--------------------------------------- include directories
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
include_directories(${CASACORE_INCLUDE_DIR}/casacore)
|
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/Dirac)
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../lib/Radio)
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../lib/Radio)
|
||||||
|
@ -27,6 +28,7 @@ target_link_libraries(sagecal
|
||||||
${WCSLIB_LIBRARIES}
|
${WCSLIB_LIBRARIES}
|
||||||
${GLIB_PKG_LIBRARIES}
|
${GLIB_PKG_LIBRARIES}
|
||||||
${LIBGFORTRAN_LIBRARIES}
|
${LIBGFORTRAN_LIBRARIES}
|
||||||
|
${HDF5_LIBRARIES}
|
||||||
-lopenblas
|
-lopenblas
|
||||||
-lgfortran
|
-lgfortran
|
||||||
-lpthread
|
-lpthread
|
||||||
|
|
Loading…
Reference in New Issue