Include a stripped-down version of FLTK in tree and add a USE_INCLUDED_FLTK option to build against it.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4603 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/vncviewer/CMakeLists.txt b/vncviewer/CMakeLists.txt
index 8be757e..7ba029f 100644
--- a/vncviewer/CMakeLists.txt
+++ b/vncviewer/CMakeLists.txt
@@ -35,6 +35,9 @@
   add_executable(vncviewer ${VNCVIEWER_SOURCES})
 endif()
 
+if(USE_INCLUDED_FLTK)
+  target_link_libraries(vncviewer fltk_static)
+endif()
 target_link_libraries(vncviewer rfb network rdr os Xregion ${FLTK_LIBRARIES} ${GETTEXT_LIBRARIES})
 
 install(TARGETS vncviewer DESTINATION bin)