Add cmake rules to check for libvnc
This commit is contained in:
parent
1d3ad05bb5
commit
5b1409d8df
|
@ -187,6 +187,8 @@ set(ZM_NO_MMAP "OFF" CACHE BOOL
|
||||||
experience problems with the shared memory. default: OFF")
|
experience problems with the shared memory. default: OFF")
|
||||||
set(ZM_NO_LIBVLC "OFF" CACHE BOOL
|
set(ZM_NO_LIBVLC "OFF" CACHE BOOL
|
||||||
"Set to ON to skip libvlc checks and force building ZM without libvlc. default: OFF")
|
"Set to ON to skip libvlc checks and force building ZM without libvlc. default: OFF")
|
||||||
|
set(ZM_NO_LIBVNC "OFF" CACHE BOOL
|
||||||
|
"Set to ON to skip libvnc checks and force building ZM without libvnc. default: OFF")
|
||||||
set(ZM_NO_CURL "OFF" CACHE BOOL
|
set(ZM_NO_CURL "OFF" CACHE BOOL
|
||||||
"Set to ON to skip cURL checks and force building ZM without cURL. default: OFF")
|
"Set to ON to skip cURL checks and force building ZM without cURL. default: OFF")
|
||||||
set(ZM_NO_X10 "OFF" CACHE BOOL
|
set(ZM_NO_X10 "OFF" CACHE BOOL
|
||||||
|
@ -674,6 +676,25 @@ if(NOT ZM_NO_LIBVLC)
|
||||||
endif(LIBVLC_LIBRARIES)
|
endif(LIBVLC_LIBRARIES)
|
||||||
endif(NOT ZM_NO_LIBVLC)
|
endif(NOT ZM_NO_LIBVLC)
|
||||||
|
|
||||||
|
if(NOT ZM_NO_LIBVNC)
|
||||||
|
# libvncclient (using find_library and find_path)
|
||||||
|
find_library(LIBVNC_LIBRARIES vncclient)
|
||||||
|
if(LIBVNC_LIBRARIES)
|
||||||
|
set(HAVE_LIBVNC 1)
|
||||||
|
list(APPEND ZM_BIN_LIBS "${LIBVNC_LIBRARIES}")
|
||||||
|
find_path(LIBVNC_INCLUDE_DIR "rfb/rfb.h")
|
||||||
|
if(LIBVNC_INCLUDE_DIR)
|
||||||
|
include_directories("${LIBVNC_INCLUDE_DIR}")
|
||||||
|
set(CMAKE_REQUIRED_INCLUDES "${LIBVNC_INCLUDE_DIR}")
|
||||||
|
endif(LIBVNC_INCLUDE_DIR)
|
||||||
|
mark_as_advanced(FORCE LIBVNC_LIBRARIES LIBVNC_INCLUDE_DIR)
|
||||||
|
check_include_file("rfb/rfb.h" HAVE_RFB_RFB_H)
|
||||||
|
set(optlibsfound "${optlibsfound} libVNC")
|
||||||
|
else(LIBVNC_LIBRARIES)
|
||||||
|
set(optlibsnotfound "${optlibsnotfound} libVNC")
|
||||||
|
endif(LIBVNC_LIBRARIES)
|
||||||
|
endif(NOT ZM_NO_LIBVNC)
|
||||||
|
|
||||||
#find_package(Boost 1.36.0)
|
#find_package(Boost 1.36.0)
|
||||||
#if(Boost_FOUND)
|
#if(Boost_FOUND)
|
||||||
#include_directories(${Boost_INCLUDE_DIRS})
|
#include_directories(${Boost_INCLUDE_DIRS})
|
||||||
|
|
Loading…
Reference in New Issue