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
30 FIND_PATH(GDAL_INCLUDE_DIR gdal.h
32 ~/Library/Frameworks/gdal.framework/Headers
33 /Library/Frameworks/gdal.framework/Headers
34 /usr/local/include/gdal
35 /usr/local/include/GDAL
43 /opt/local/include/gdal
44 /opt/local/include/GDAL
45 /opt/local/include # DarwinPorts
48 /opt/csw/include # Blastwave
54 FIND_LIBRARY(GDAL_LIBRARY
59 PATH_SUFFIXES lib64 lib
62 FIND_LIBRARY(GDAL_LIBRARY
74 [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;GDAL_ROOT]/lib
75 PATH_SUFFIXES lib64 lib
79 IF(GDAL_LIBRARY AND GDAL_INCLUDE_DIR)
81 ENDIF(GDAL_LIBRARY AND GDAL_INCLUDE_DIR)