aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-05-19 14:49:18 +0000
committerPierre Ossman <ossman@cendio.se>2011-05-19 14:49:18 +0000
commit4a6be4a2a0ebba32133c09c92b0ef84050d2f96f (patch)
tree8655c9f2eea976a203956e2a8eb54a1c8090808b /CMakeLists.txt
parent6a9e2e63415b3e8ed473686968cd7b28274879e0 (diff)
downloadtigervnc-4a6be4a2a0ebba32133c09c92b0ef84050d2f96f.tar.gz
tigervnc-4a6be4a2a0ebba32133c09c92b0ef84050d2f96f.zip
Implement support for sending the local clipboard to the server.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4432 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 06a4e772..f38a0176 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -177,10 +177,20 @@ if(BUILD_NEW_VNCVIEWER)
set(FLTK_SKIP_OPENGL TRUE)
find_package(FLTK COMPONENTS REQUIRED)
- # FLTK STR #2599
+ # No proper handling for extra X11 libs that FLTK might need...
+ if(X11_Xfixes_FOUND)
+ set(FLTK_LIBRARIES ${FLTK_LIBRARIES} ${X11_Xfixes_LIB})
+ endif()
+
set(CMAKE_REQUIRED_INCLUDES ${FLTK_INCLUDE_DIR})
set(CMAKE_REQUIRED_LIBRARIES ${FLTK_LIBRARIES})
+
+ # FLTK STR #2599
check_cxx_source_compiles("#include <FL/Fl_Widget.H>\nint main(int c, char** v) { void *foo = (void*)&Fl_Widget::set_simple_keyboard; return 0; }" HAVE_FLTK_DEAD_KEYS)
+
+ # FLTK STR #2636
+ check_cxx_source_compiles("#include <FL/Fl.H>\nint main(int c, char** v) { Fl::add_clipboard_notify(NULL, NULL); return 0; }" HAVE_FLTK_CLIPBOARD)
+
set(CMAKE_REQUIRED_INCLUDES)
set(CMAKE_REQUIRED_LIBRARIES)
endif()