4 # GDAL_FOUND, if false, do not try to link to gdal
5 # GDAL_INCLUDE_DIR, where to find the headers
7 # $GDALDIR is an environment variable that would
8 # correspond to the ./configure --prefix=$GDAL_DIR
9 # used in building gdal.
11 # Created by Eric Wing. I'm not a gdal user, but OpenSceneGraph uses it
12 # for osgTerrain so I whipped this module together for completeness.
13 # I actually don't know the conventions or where files are typically
15 # Any real gdal users are encouraged to correct this (but please don't
16 # break the OS X framework stuff when doing so which is what usually seems
19 # This makes the presumption that you are include gdal.h like
22 FIND_PATH(GDAL_INCLUDE_DIR gdal.h
27 ~/Library/Frameworks/gdal.framework/Headers
28 /Library/Frameworks/gdal.framework/Headers
29 /usr/local/include/gdal
30 /usr/local/include/GDAL
38 /opt/local/include/gdal
39 /opt/local/include/GDAL
40 /opt/local/include # DarwinPorts
43 /opt/csw/include # Blastwave
49 FIND_LIBRARY(GDAL_LIBRARY
53 PATH_SUFFIXES lib64 lib
64 [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;GDAL_ROOT]/lib
68 IF(GDAL_LIBRARY AND GDAL_INCLUDE_DIR)
70 ENDIF(GDAL_LIBRARY AND GDAL_INCLUDE_DIR)