blob: 82f0d2acce26242881e5aaef6ca91ac66b85bb72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
include_directories(${X11_INCLUDE_DIR})
include_directories(${CMAKE_SOURCE_DIR}/unix/tx)
include_directories(${CMAKE_SOURCE_DIR}/unix)
include_directories(${CMAKE_SOURCE_DIR}/common)
add_executable(x0vncserver
buildtime.c
Geometry.cxx
Image.cxx
PollingManager.cxx
PollingScheduler.cxx
TimeMillis.cxx
x0vncserver.cxx
XPixelBuffer.cxx
../vncconfig/QueryConnectDialog.cxx
)
target_link_libraries(x0vncserver tx rfb network rdr)
if(X11_FOUND AND X11_XTest_LIB)
add_definitions(-DHAVE_XTEST)
target_link_libraries(x0vncserver ${X11_XTest_LIB})
else()
message(WARNING "No XTest extension. x0vncserver will be view-only.")
endif()
if(X11_FOUND AND X11_Xdamage_LIB)
add_definitions(-DHAVE_XDAMAGE)
target_link_libraries(x0vncserver ${X11_Xdamage_LIB})
else()
message(WARNING "No DAMAGE extension. x0vncserver will have to use the slower polling method.")
endif()
target_link_libraries(x0vncserver ${X11_LIBRARIES})
install(TARGETS x0vncserver DESTINATION ${BIN_DIR})
install(FILES x0vncserver.man DESTINATION ${MAN_DIR}/man1 RENAME x0vncserver.1)
|