diff options
author | DRC <dcommander@users.sourceforge.net> | 2011-08-19 16:41:06 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2011-08-19 16:41:06 +0000 |
commit | 04c4bad82febd8e5ec1fed5fb62fd46b78c2886b (patch) | |
tree | 133014e4e75dd11e06de467b181907eda4b034f6 /unix/x0vncserver | |
parent | bf79f6850941c57c630f546e0093fe32ef743b3e (diff) | |
download | tigervnc-04c4bad82febd8e5ec1fed5fb62fd46b78c2886b.tar.gz tigervnc-04c4bad82febd8e5ec1fed5fb62fd46b78c2886b.zip |
Link x0vncserver against Xtst, if it was detected (otherwise x0vncserver is view-only)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4644 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'unix/x0vncserver')
-rw-r--r-- | unix/x0vncserver/CMakeLists.txt | 6 |
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) |