Commit 48cc7d7a8a355b1c2c507ebd90f8c80dda011ff1

Authored by Benjamin Renard
1 parent bd9dfce2

Add missing file

Showing 1 changed file with 22 additions and 0 deletions   Show diff stats
cmake/modules/FindCDF.cmake 0 → 100644
@@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
  1 +# - Try to find the libcdf libraries
  2 +# Once done this will define
  3 +#
  4 +# libcdf_FOUND - flag that indicates libcdf is installed
  5 +# libcdf_INCLUDE_DIR - the libcdf include directory
  6 +# libcdf_LIBRARIES - the libcdf library directory
  7 +
  8 +FIND_PATH(libcdf_INCLUDE_DIR cdf.h PATHS /include /usr/include /usr/local/include ${USERLOCAL_ROOT}/include)
  9 +FIND_LIBRARY(libcdf_LIBRARIES NAMES cdf PATHS /lib /usr/lib /usr/local/lib ${USERLOCAL_ROOT}/lib )
  10 +
  11 +# set FOUND flag
  12 +IF(libcdf_INCLUDE_DIR AND libcdf_LIBRARIES)
  13 + SET(libcdf_FOUND 1)
  14 + if(NOT libcdf_FIND_QUIETLY)
  15 + message(STATUS "Found libcdf: ${libcdf_LIBRARIES}")
  16 + endif(NOT libcdf_FIND_QUIETLY)
  17 +ELSE(libcdf_INCLUDE_DIR AND libcdf_LIBRARIES)
  18 + SET(libcdf_FOUND 0 CACHE BOOL "Not found libcdf library")
  19 + message(STATUS "NOT Found libcdf, disabling it")
  20 +ENDIF(libcdf_INCLUDE_DIR AND libcdf_LIBRARIES)
  21 +
  22 +MARK_AS_ADVANCED(libcdf_INCLUDE_DIR libcdf_LIBRARIES)