Blame view

cmake/modules/FindCDF.cmake 1.03 KB
48cc7d7a   Benjamin Renard   Add missing file
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

531fafe7   Benjamin Renard   Install AddLocalV...
8
9
FIND_PATH(libcdf_INCLUDE_DIR cdf.h PATHS /include /usr/include /usr/local/include /usr/local/cdf/include ${USERLOCAL_ROOT}/include /opt/local/include )
FIND_LIBRARY(libcdf_LIBRARIES NAMES cdf PATHS /lib /usr/lib /usr/local/lib /usr/local/cdf/lib ${USERLOCAL_ROOT}/lib /opt/local/lib)
48cc7d7a   Benjamin Renard   Add missing file
10
11
12
13
14
15
16
17
18
19
20
21

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

6af5b7f6   Benjamin Renard   Another bug with ...
22
get_filename_component(libcdf_LIBRARY_DIR ${libcdf_LIBRARIES} PATH)
76588314   Benjamin Renard   Fix bug with cdf ...
23
24

MARK_AS_ADVANCED(libcdf_INCLUDE_DIR libcdf_LIBRARY_DIR libcdf_LIBRARIES)