OpenSceneGraph/CMakeModules/FindXine.cmake
2007-05-04 19:17:49 +00:00

56 lines
1.3 KiB
CMake

# Locate gdal
# This module defines
# XINE_LIBRARY
# XINE_FOUND, if false, do not try to link to gdal
# XINE_INCLUDE_DIR, where to find the headers
#
# $XINE_DIR is an environment variable that would
# correspond to the ./configure --prefix=$XINE_DIR
#
# Created by Robert Osfield.
FIND_PATH(XINE_INCLUDE_DIR xine.h
$ENV{XINE_DIR}/include
$ENV{XINE_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
)
FIND_LIBRARY(XINE_LIBRARY
NAMES xine
PATHS
$ENV{XINE_DIR}/lib
$ENV{XINE_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
)
SET(XINE_FOUND "NO")
IF(XINE_LIBRARY AND XINE_INCLUDE_DIR)
SET(XINE_FOUND "YES")
ENDIF(XINE_LIBRARY AND XINE_INCLUDE_DIR)