6b4e2fbdf2
From Robert Osfield, CMake build support for FOX example
75 lines
2.0 KiB
CMake
75 lines
2.0 KiB
CMake
# Locate gdal
|
|
# This module defines
|
|
# FOX_LIBRARY
|
|
# FOX_FOUND, if false, do not try to link to gdal
|
|
# FOX_INCLUDE_DIR, where to find the headers
|
|
#
|
|
# $FOX_DIR is an environment variable that would
|
|
# correspond to the ./configure --prefix=$FOX_DIR
|
|
#
|
|
# Created by Robert Osfield.
|
|
|
|
FIND_PATH(FOX_INCLUDE_DIR fx.h
|
|
$ENV{FOX_DIR}/include/fox-1.6
|
|
$ENV{FOX_DIR}/fox-1.6
|
|
$ENV{OSGDIR}/include/fox-1.6
|
|
$ENV{OSGDIR}/fox-1.6
|
|
$ENV{OSG_ROOT}/include/fox-1.6
|
|
~/Library/Frameworks/fox-1.6
|
|
/Library/Frameworks/fox-1.6
|
|
/usr/local/include/fox-1.6
|
|
/usr/include/fox-1.6
|
|
/sw/include/fox-1.6 # Fink
|
|
/opt/local/include/fox-1.6 # DarwinPorts
|
|
/opt/csw/include/fox-1.6 # Blastwave
|
|
/opt/include/fox-1.6
|
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include/fox-1.6
|
|
/usr/freeware/include/fox-1.6
|
|
$ENV{FOX_DIR}/include
|
|
$ENV{FOX_DIR}
|
|
$ENV{OSGDIR}/include
|
|
$ENV{OSGDIR}
|
|
$ENV{OSG_ROOT}/include
|
|
~/Library/Frameworks
|
|
/Library/Frameworks
|
|
/usr/local/include
|
|
/usr/include
|
|
/sw/include # Fink
|
|
/opt/local/include # DarwinPorts
|
|
/opt/csw/include # Blastwave
|
|
/opt/include
|
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
|
|
/usr/freeware/include
|
|
)
|
|
|
|
MACRO(FIND_FOX_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
|
|
|
FIND_LIBRARY(${MYLIBRARY}
|
|
NAMES ${MYLIBRARYNAME}
|
|
PATHS
|
|
$ENV{FOX_DIR}/lib
|
|
$ENV{FOX_DIR}
|
|
$ENV{OSGDIR}/lib
|
|
$ENV{OSGDIR}
|
|
$ENV{OSG_ROOT}/lib
|
|
~/Library/Frameworks
|
|
/Library/Frameworks
|
|
/usr/local/lib
|
|
/usr/lib
|
|
/sw/lib
|
|
/opt/local/lib
|
|
/opt/csw/lib
|
|
/opt/lib
|
|
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/lib
|
|
/usr/freeware/lib64
|
|
)
|
|
|
|
ENDMACRO(FIND_FOX_LIBRARY LIBRARY LIBRARYNAME)
|
|
|
|
FIND_FOX_LIBRARY(FOX_LIBRARY FOX-1.6)
|
|
|
|
SET(FOX_FOUND "NO")
|
|
IF(FOX_LIBRARY AND FOX_INCLUDE_DIR)
|
|
SET(FOX_FOUND "YES")
|
|
ENDIF(FOX_LIBRARY AND FOX_INCLUDE_DIR)
|