Blame view

cmake/modules/FindCDF.cmake 852 Bytes
fbe3c2bb   Benjamin Renard   First commit
1
2
3
4
5
6
7
# - 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

6c8de11c   Benjamin Renard   Remove hard coded...
8
9
FIND_PATH(libcdf_INCLUDE_DIR cdf.h PATHS ${USERLOCAL_ROOT}/include NO_DEFAULT_PATH)
FIND_LIBRARY(libcdf_LIBRARIES NAMES cdf PATHS ${USERLOCAL_ROOT}/lib NO_DEFAULT_PATH)
fbe3c2bb   Benjamin Renard   First commit
10
11
12
13
14
15
16
17
18
19
20
21
22

# 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)