summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--unix/x0vncserver/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/unix/x0vncserver/CMakeLists.txt b/unix/x0vncserver/CMakeLists.txt
index 9a52da20..bdd64827 100644
--- a/unix/x0vncserver/CMakeLists.txt
+++ b/unix/x0vncserver/CMakeLists.txt
@@ -16,6 +16,12 @@ add_executable(x0vncserver
)
target_link_libraries(x0vncserver tx rfb network rdr ${X11_LIBRARIES})
+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()
install(TARGETS x0vncserver DESTINATION bin)
install(FILES x0vncserver.man DESTINATION man/man1 RENAME x0vncserver.1)