From 48cc7d7a8a355b1c2c507ebd90f8c80dda011ff1 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 25 Sep 2015 17:51:37 +0200 Subject: [PATCH] Add missing file --- cmake/modules/FindCDF.cmake | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+), 0 deletions(-) create mode 100644 cmake/modules/FindCDF.cmake diff --git a/cmake/modules/FindCDF.cmake b/cmake/modules/FindCDF.cmake new file mode 100644 index 0000000..a33fa51 --- /dev/null +++ b/cmake/modules/FindCDF.cmake @@ -0,0 +1,22 @@ +# - Try to find the libcdf libraries +# Once done this will define +# +# libcdf_FOUND - flag that indicates libcdf is installed +# libcdf_INCLUDE_DIR - the libcdf include directory +# libcdf_LIBRARIES - the libcdf library directory + +FIND_PATH(libcdf_INCLUDE_DIR cdf.h PATHS /include /usr/include /usr/local/include ${USERLOCAL_ROOT}/include) +FIND_LIBRARY(libcdf_LIBRARIES NAMES cdf PATHS /lib /usr/lib /usr/local/lib ${USERLOCAL_ROOT}/lib ) + +# set FOUND flag +IF(libcdf_INCLUDE_DIR AND libcdf_LIBRARIES) + SET(libcdf_FOUND 1) + if(NOT libcdf_FIND_QUIETLY) + message(STATUS "Found libcdf: ${libcdf_LIBRARIES}") + endif(NOT libcdf_FIND_QUIETLY) +ELSE(libcdf_INCLUDE_DIR AND libcdf_LIBRARIES) + SET(libcdf_FOUND 0 CACHE BOOL "Not found libcdf library") + message(STATUS "NOT Found libcdf, disabling it") +ENDIF(libcdf_INCLUDE_DIR AND libcdf_LIBRARIES) + +MARK_AS_ADVANCED(libcdf_INCLUDE_DIR libcdf_LIBRARIES) -- libgit2 0.21.2