FindHDF5.cmake 643 Bytes
Newer Older
1
2
#
# Find the native HDF5 includes and library
3
4
# Note: this is deprecated, and will be removed entirely
# once vtk's min cmake >= 2.8.0
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# HDF5_INCLUDE_DIR - where to find H5public.h, etc.
# HDF5_LIBRARIES   - List of fully qualified libraries to link against when using hdf5.
# HDF5_FOUND       - Do not attempt to use hdf5 if "no" or undefined.

FIND_PATH(HDF5_INCLUDE_DIR H5public.h
  /usr/local/include
  /usr/include
)

FIND_LIBRARY(HDF5_LIBRARY hdf5
  /usr/local/lib
  /usr/lib
)

IF(HDF5_INCLUDE_DIR)
  IF(HDF5_LIBRARY)
    SET( HDF5_LIBRARIES ${HDF5_LIBRARY} )
    SET( HDF5_FOUND "YES" )
  ENDIF(HDF5_LIBRARY)
ENDIF(HDF5_INCLUDE_DIR)