2008-12-01 00:33:11 +08:00
|
|
|
# Locate libvncserver
|
2008-10-31 20:03:44 +08:00
|
|
|
# This module defines
|
|
|
|
# LIBVNCSERVER_LIBRARY
|
2008-12-01 00:33:11 +08:00
|
|
|
# LIBVNCSERVER_FOUND, if false, do not try to link to libvncserver
|
2008-10-31 20:03:44 +08:00
|
|
|
# LIBVNCSERVER_INCLUDE_DIR, where to find the headers
|
|
|
|
#
|
|
|
|
# $LIBVNCSERVER_DIR is an environment variable that would
|
|
|
|
# correspond to the ./configure --prefix=$LIBVNCSERVER_DIR
|
2008-12-01 00:33:11 +08:00
|
|
|
# used in building libvncserver.
|
2008-10-31 20:03:44 +08:00
|
|
|
|
|
|
|
FIND_PATH(LIBVNCSERVER_INCLUDE_DIR rfb/rfb.h
|
|
|
|
$ENV{LIBVNCSERVER_DIR}/include
|
|
|
|
$ENV{LIBVNCSERVER_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(LIBVNCCLIENT_LIBRARY
|
|
|
|
NAMES vncclient
|
|
|
|
PATHS
|
|
|
|
$ENV{LIBVNCSERVER_DIR}/lib
|
|
|
|
$ENV{LIBVNCSERVER_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
|
|
|
|
)
|
|
|
|
|
|
|
|
FIND_LIBRARY(LIBVNCSERVER_LIBRARY
|
|
|
|
NAMES vncserver
|
|
|
|
PATHS
|
|
|
|
$ENV{LIBVNCSERVER_DIR}/lib
|
|
|
|
$ENV{LIBVNCSERVER_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(LIBVNCSERVER_FOUND "NO")
|
|
|
|
IF(LIBVNCSERVER_LIBRARY AND LIBVNCSERVER_INCLUDE_DIR)
|
|
|
|
SET(LIBVNCSERVER_FOUND "YES")
|
|
|
|
ENDIF(LIBVNCSERVER_LIBRARY AND LIBVNCSERVER_INCLUDE_DIR)
|
|
|
|
|
|
|
|
|