2007-05-04 22:25:02 +08:00
|
|
|
# Locate gdal
|
|
|
|
# This module defines
|
|
|
|
# COLLADA_LIBRARY
|
|
|
|
# COLLADA_FOUND, if false, do not try to link to gdal
|
|
|
|
# COLLADA_INCLUDE_DIR, where to find the headers
|
|
|
|
#
|
|
|
|
# $COLLADA_DIR is an environment variable that would
|
|
|
|
# correspond to the ./configure --prefix=$COLLADA_DIR
|
|
|
|
#
|
|
|
|
# Created by Robert Osfield.
|
|
|
|
|
|
|
|
FIND_PATH(COLLADA_INCLUDE_DIR dae.h
|
|
|
|
$ENV{COLLADA_DIR}/include
|
|
|
|
$ENV{COLLADA_DIR}
|
|
|
|
$ENV{OSGDIR}/include
|
|
|
|
$ENV{OSGDIR}
|
|
|
|
$ENV{OSG_ROOT}/include
|
|
|
|
~/Library/Frameworks
|
|
|
|
/Library/Frameworks
|
|
|
|
/usr/local/include
|
2008-05-08 20:36:07 +08:00
|
|
|
/usr/local/include/colladadom
|
|
|
|
/usr/include/
|
|
|
|
/usr/include/colladadom
|
2007-05-04 22:25:02 +08:00
|
|
|
/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
|
|
|
|
)
|
|
|
|
|
|
|
|
FIND_LIBRARY(COLLADA_LIBRARY
|
2008-05-08 20:36:07 +08:00
|
|
|
NAMES collada_dom collada14dom
|
2007-05-04 22:25:02 +08:00
|
|
|
PATHS
|
|
|
|
$ENV{COLLADA_DIR}/lib
|
|
|
|
$ENV{COLLADA_DIR}/lib-dbg
|
|
|
|
$ENV{COLLADA_DIR}
|
|
|
|
$ENV{OSGDIR}/lib
|
|
|
|
$ENV{OSGDIR}
|
|
|
|
$ENV{OSG_ROOT}/lib
|
|
|
|
~/Library/Frameworks
|
|
|
|
/Library/Frameworks
|
|
|
|
/usr/local/lib
|
2008-05-08 20:36:07 +08:00
|
|
|
/usr/local/lib64
|
2007-05-04 22:25:02 +08:00
|
|
|
/usr/lib
|
2008-05-08 20:36:07 +08:00
|
|
|
/usr/lib64
|
2007-05-04 22:25:02 +08:00
|
|
|
/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
|
|
|
|
)
|
|
|
|
|
|
|
|
SET(COLLADA_FOUND "NO")
|
|
|
|
IF(COLLADA_LIBRARY AND COLLADA_INCLUDE_DIR)
|
|
|
|
SET(COLLADA_FOUND "YES")
|
|
|
|
ENDIF(COLLADA_LIBRARY AND COLLADA_INCLUDE_DIR)
|
|
|
|
|
|
|
|
|