blob: ef347056ad7e86781853f8c743339a889759522e [file] [log] [blame]
DRC180c0162010-10-27 07:20:27 +00001#
2# Setup
3#
4
DRCaeff3312011-06-07 04:51:57 +00005cmake_minimum_required(VERSION 2.8)
DRC180c0162010-10-27 07:20:27 +00006
Pierre Ossmanb232b5f2011-04-28 14:38:04 +00007# Internal cmake modules
8set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
9
Pierre Ossman7f443262011-03-08 13:06:46 +000010include(CheckIncludeFiles)
11include(CheckFunctionExists)
Pierre Ossmanb232b5f2011-04-28 14:38:04 +000012include(CheckLibraryExists)
Pierre Ossman7f443262011-03-08 13:06:46 +000013include(CheckTypeSize)
14include(CheckCSourceCompiles)
Pierre Ossman89f868a2011-04-11 11:59:31 +000015include(CheckCXXSourceCompiles)
DRC4e326a02011-07-28 08:06:39 +000016include(CheckCSourceRuns)
Pierre Ossman7f443262011-03-08 13:06:46 +000017
Henrik Andersson23029cc2011-06-09 09:13:23 +000018include(CMakeMacroLibtoolFile)
19
Peter Åstrandbb445ef2011-04-28 09:29:13 +000020project(tigervnc)
DRCde30d952011-06-24 20:05:06 +000021set(VERSION 1.1.80)
DRC180c0162010-10-27 07:20:27 +000022
23# The RC version must always be four comma-separated numbers
DRCde30d952011-06-24 20:05:06 +000024set(RCVERSION 1,1,80,0)
DRC180c0162010-10-27 07:20:27 +000025
Pierre Ossman5156d5e2011-03-09 09:42:34 +000026# Manual toggle until we can deprecate the old viewers
DRCde22ae92011-06-23 16:45:18 +000027option(BUILD_NEW_VNCVIEWER "Build the new FLTK based vncviewer instead of the old ones" ON)
Pierre Ossman5156d5e2011-03-09 09:42:34 +000028
Pierre Ossman8f64ef72011-03-08 16:32:49 +000029# Compatibility variables for the migration from autotools
30add_definitions(-DPACKAGE_NAME="${CMAKE_PROJECT_NAME}")
31add_definitions(-DPACKAGE_VERSION="${VERSION}")
32add_definitions(-DLOCALEDIR="${CMAKE_INSTALL_PREFIX}/share/locale")
33
Pierre Ossmane8115162011-03-03 12:51:38 +000034# Try to encode today's date into the build id. We assume that MSVC
35# means we need to use a native Windows method, otherwise we assume
36# some kind of Unix system. The id will be empty if things fail.
37set(BUILD "")
38if(MSVC)
Pierre Ossmanb232b5f2011-04-28 14:38:04 +000039 execute_process(COMMAND "${CMAKE_SOURCE_DIR}/cmake/getdate.bat"
DRC180c0162010-10-27 07:20:27 +000040 OUTPUT_VARIABLE BUILD)
DRC180c0162010-10-27 07:20:27 +000041else()
Pierre Ossmane8115162011-03-03 12:51:38 +000042 execute_process(COMMAND "date" "+%Y%m%d" OUTPUT_VARIABLE BUILD)
43endif()
44
45if(NOT BUILD)
46 set(BUILD "")
47else()
48 string(REGEX REPLACE "\n" "" BUILD ${BUILD})
DRC180c0162010-10-27 07:20:27 +000049endif()
50
Pierre Ossman2c66a632011-03-03 12:52:59 +000051# Default to optimised builds instead of debug ones. Our code has no bugs ;)
52# (CMake makes it fairly easy to toggle this back to Debug if needed)
DRC180c0162010-10-27 07:20:27 +000053if(NOT CMAKE_BUILD_TYPE)
54 set(CMAKE_BUILD_TYPE Release)
55endif()
56
57message(STATUS "CMAKE_BUILD_TYPE = ${CMAKE_BUILD_TYPE}")
58
59# This only works if building from the command line. There is currently no way
60# to set a variable's value based on the build type when using the MSVC IDE.
61if(CMAKE_BUILD_TYPE STREQUAL "Debug")
62 set(BUILD "${BUILD}d")
63endif()
64
65message(STATUS "VERSION = ${VERSION}, BUILD = ${BUILD}")
66
67if(NOT DEFINED BUILD_WINVNC)
68 if(MSVC)
69 set(BUILD_WINVNC 1)
70 else()
71 set(BUILD_WINVNC 0)
72 endif()
73endif()
74
75if(MSVC)
76 # Use the static C library for all build types
77 foreach(var CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
78 CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO
79 CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
80 CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
81 if(${var} MATCHES "/MD")
82 string(REGEX REPLACE "/MD" "/MT" ${var} "${${var}}")
83 endif()
84 endforeach()
85
86 # NOTE: 4244 and 4267 are 64-bit to 32-bit conversion warnings, so normally
87 # it is not a good idea to disable them, but we do this to duplicate the
88 # behavior of GCC, which is less strict.
89 add_definitions(-wd4244 -wd4267 -wd4800 -wd4996)
90endif()
91
Pierre Ossman9640f442011-03-08 13:12:33 +000092# Minimum version is Windows 2000 (5.0)
DRC2301beb2011-06-22 05:46:53 +000093if(WIN32)
94 if(NOT CMAKE_SIZEOF_VOID_P MATCHES 8)
95 add_definitions(-D_WIN32_IE=0x0500 -D_WIN32_WINNT=0x0500)
96 else()
DRC7cf9fbc2011-07-06 07:23:51 +000097 set(WIN64 1)
DRC2301beb2011-06-22 05:46:53 +000098 # Win64 doesn't like us requesting a Windows version that didn't have
99 # 64-bit support. Request XP (5.1) instead.
100 add_definitions(-D_WIN32_IE=0x0501 -D_WIN32_WINNT=0x0501)
101 endif()
Pierre Ossman9640f442011-03-08 13:12:33 +0000102endif()
103
Pierre Ossman69314c72011-03-08 12:18:13 +0000104if(CMAKE_SIZEOF_VOID_P MATCHES 8)
DRC180c0162010-10-27 07:20:27 +0000105 message(STATUS "64-bit build")
106else()
107 message(STATUS "32-bit build")
108endif()
109
110# CMake doesn't properly support resource compilation with MinGW. Boo!
111if(MINGW)
112 if(NOT DEFINED RC)
113 set(CMAKE_RC_COMPILER_INIT windres)
114 else()
115 set(CMAKE_RC_COMPILER_INIT ${RC})
116 endif()
117 enable_language(RC)
118 message(STATUS "Resource compiler: ${CMAKE_RC_COMPILER}")
119 set(CMAKE_RC_COMPILE_OBJECT
120 "<CMAKE_RC_COMPILER> <FLAGS> <DEFINES> -o <OBJECT> --output-format=coff <SOURCE>")
121endif()
122
Pierre Ossman8f64ef72011-03-08 16:32:49 +0000123# X11 stuff. It's in a if() so that we can say REQUIRED
DRC1b7abb92011-06-23 19:12:08 +0000124if(UNIX AND NOT APPLE)
Pierre Ossman8f64ef72011-03-08 16:32:49 +0000125 find_package(X11 REQUIRED)
126endif()
127
Pierre Ossmana7769f22011-03-03 09:44:49 +0000128# Check for zlib
129find_package(ZLIB)
130option(USE_INCLUDED_ZLIB "Force use of the bundled zlib")
131if(NOT ZLIB_FOUND)
132 message(STATUS "System zlib not found. Using included zlib")
133 set(USE_INCLUDED_ZLIB 1)
134endif()
135
Peter Åstrandbb445ef2011-04-28 09:29:13 +0000136# Check for gettext
137option(ENABLE_NLS "Enable translation of program messages" ON)
Pierre Ossmanb232b5f2011-04-28 14:38:04 +0000138if(ENABLE_NLS)
139 # Tools
DRC2690f7a2011-06-24 04:17:02 +0000140 find_package(Gettext)
Pierre Ossmanb232b5f2011-04-28 14:38:04 +0000141 set(LOCALE_DIR "${CMAKE_INSTALL_PREFIX}/share/locale")
142
143 # Gettext needs iconv
DRC2690f7a2011-06-24 04:17:02 +0000144 find_package(Iconv)
Pierre Ossmanb232b5f2011-04-28 14:38:04 +0000145
DRC2690f7a2011-06-24 04:17:02 +0000146 if(ICONV_FOUND)
147 # Headers and libraries (copied from licq)
148 set(GETTEXT_FOUND FALSE)
Pierre Ossmanb232b5f2011-04-28 14:38:04 +0000149
DRC2690f7a2011-06-24 04:17:02 +0000150 find_path(GETTEXT_INCLUDE_DIR libintl.h)
151 if(GETTEXT_INCLUDE_DIR)
152 set(CMAKE_REQUIRED_LIBRARIES ${ICONV_LIBRARIES})
153 check_function_exists(dgettext LIBC_HAS_DGETTEXT)
154 if(LIBC_HAS_DGETTEXT)
Pierre Ossmanb232b5f2011-04-28 14:38:04 +0000155 set(GETTEXT_FOUND TRUE)
DRC2690f7a2011-06-24 04:17:02 +0000156 else()
157 find_library(LIBINTL_LIBRARY NAMES intl libintl)
158 check_library_exists(${LIBINTL_LIBRARY} "dgettext" "" LIBINTL_HAS_DGETTEXT)
159 if(LIBINTL_HAS_DGETTEXT)
160 set(GETTEXT_LIBRARIES ${LIBINTL_LIBRARY} ${ICONV_LIBRARIES})
161 set(GETTEXT_FOUND TRUE)
162 endif()
Pierre Ossmanb232b5f2011-04-28 14:38:04 +0000163 endif()
DRC2690f7a2011-06-24 04:17:02 +0000164 set(CMAKE_REQUIRED_LIBRARIES)
Pierre Ossmanb232b5f2011-04-28 14:38:04 +0000165 endif()
Pierre Ossmanb232b5f2011-04-28 14:38:04 +0000166 endif()
167
168 if(NOT GETTEXT_FOUND)
DRC2690f7a2011-06-24 04:17:02 +0000169 message(WARNING "Gettext NOT found. Native Language Support disabled.")
170 set(ENABLE_NLS 0)
Pierre Ossmanb232b5f2011-04-28 14:38:04 +0000171 endif()
172endif()
Peter Åstrandbb445ef2011-04-28 09:29:13 +0000173
Pierre Ossman4c6bd4c2011-03-03 09:55:21 +0000174# Check for libjpeg
175find_package(JPEG REQUIRED)
176
Pierre Ossman6fa07492011-03-04 11:35:24 +0000177# Warn if it doesn't seem to be the accelerated libjpeg that's found
DRC63b40b72011-06-07 01:47:38 +0000178set(CMAKE_REQUIRED_LIBRARIES ${JPEG_LIBRARIES})
179set(CMAKE_REQUIRED_FLAGS -I${JPEG_INCLUDE_DIR})
DRC4e326a02011-07-28 08:06:39 +0000180if(MSVC)
181 set(CMAKE_REQUIRED_DEFINITIONS -MT)
182endif()
DRCfe06e612011-06-07 01:55:12 +0000183
DRC4e326a02011-07-28 08:06:39 +0000184check_c_source_runs("\n
185 #include <stdio.h>\n
186 #include <jpeglib.h>\n
187 int main(void) {\n
188 struct jpeg_compress_struct cinfo;\n
189 struct jpeg_error_mgr jerr;\n
190 cinfo.err=jpeg_std_error(&jerr);\n
191 jpeg_create_compress(&cinfo);\n
192 cinfo.input_components = 3;\n
193 jpeg_set_defaults(&cinfo);\n
194 cinfo.in_color_space = JCS_EXT_RGB;\n
195 jpeg_default_colorspace(&cinfo);\n
196 return 0;\n
197 }" FOUND_LIBJPEG_TURBO)
DRCfe06e612011-06-07 01:55:12 +0000198
199set(CMAKE_REQUIRED_LIBRARIES)
200set(CMAKE_REQUIRED_FLAGS)
DRC4e326a02011-07-28 08:06:39 +0000201set(CMAKE_REQUIRED_DEFINITIONS)
DRCfe06e612011-06-07 01:55:12 +0000202
DRC1953b512011-06-24 04:19:36 +0000203if(NOT FOUND_LIBJPEG_TURBO)
Pierre Ossman6fa07492011-03-04 11:35:24 +0000204 message(STATUS "WARNING: You are not using libjpeg-turbo. Performance will suffer.")
205endif()
206
Pierre Ossman5156d5e2011-03-09 09:42:34 +0000207# Check for FLTK
208if(BUILD_NEW_VNCVIEWER)
209 set(FLTK_SKIP_FLUID TRUE)
210 set(FLTK_SKIP_OPENGL TRUE)
DRC71f21992011-06-23 09:30:15 +0000211 set(FLTK_SKIP_IMAGES TRUE)
212 set(FLTK_SKIP_FORMS TRUE)
DRC2ff39b82011-07-28 08:38:59 +0000213 find_package(FLTK)
Pierre Ossman89f868a2011-04-11 11:59:31 +0000214
DRC1b7abb92011-06-23 19:12:08 +0000215 if(NOT APPLE)
216 # No proper handling for extra X11 libs that FLTK might need...
217 if(X11_Xft_FOUND)
218 set(FLTK_LIBRARIES ${FLTK_LIBRARIES} ${X11_Xft_LIB})
219 endif()
220 if(X11_Xinerama_FOUND)
221 set(FLTK_LIBRARIES ${FLTK_LIBRARIES} ${X11_Xinerama_LIB})
222 endif()
223 if(X11_Xfixes_FOUND)
224 set(FLTK_LIBRARIES ${FLTK_LIBRARIES} ${X11_Xfixes_LIB})
225 endif()
226 if(X11_Xcursor_FOUND)
227 set(FLTK_LIBRARIES ${FLTK_LIBRARIES} ${X11_Xcursor_LIB})
228 endif()
Pierre Ossman835b4ef2011-06-08 17:02:36 +0000229 endif()
Pierre Ossman4a6be4a2011-05-19 14:49:18 +0000230
DRC2ff39b82011-07-28 08:38:59 +0000231 if(FLTK_FOUND)
232 set(CMAKE_REQUIRED_INCLUDES ${FLTK_INCLUDE_DIR})
233 set(CMAKE_REQUIRED_LIBRARIES ${FLTK_LIBRARIES})
Pierre Ossman4a6be4a2011-05-19 14:49:18 +0000234
DRC2ff39b82011-07-28 08:38:59 +0000235 # FLTK STR #2599
236 check_cxx_source_compiles("#include <FL/Fl_Widget.H>\nint main(int c, char** v) { void (Fl_Widget::*foo)() = &Fl_Widget::set_simple_keyboard; return 0; }" HAVE_FLTK_DEAD_KEYS)
Pierre Ossman4a6be4a2011-05-19 14:49:18 +0000237
DRC2ff39b82011-07-28 08:38:59 +0000238 # FLTK STR #2636
239 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)
Pierre Ossman4a6be4a2011-05-19 14:49:18 +0000240
DRC2ff39b82011-07-28 08:38:59 +0000241 # FLTK STR #2638
242 check_cxx_source_compiles("#include <FL/Enumerations.H>\nint main(int c, char** v) { return FL_Volume_Down; }" HAVE_FLTK_MEDIAKEYS)
Pierre Ossmancb0cffe2011-05-20 14:55:10 +0000243
DRC2ff39b82011-07-28 08:38:59 +0000244 # FLTK STR #2641
245 check_cxx_source_compiles("#include <FL/Enumerations.H>\nint main(int c, char** v) { return FL_FULLSCREEN; }" HAVE_FLTK_FULLSCREEN)
Pierre Ossman4c613d32011-05-26 14:14:06 +0000246
DRC2ff39b82011-07-28 08:38:59 +0000247 # FLTK STR #2660
248 check_cxx_source_compiles("#include <FL/Fl_Window.H>\nint main(int c, char** v) { void (Fl_Window::*foo)(const Fl_RGB_Image*,int,int) = &Fl_Window::cursor; return 0; }" HAVE_FLTK_CURSOR)
Pierre Ossman835b4ef2011-06-08 17:02:36 +0000249
DRC2ff39b82011-07-28 08:38:59 +0000250 set(CMAKE_REQUIRED_INCLUDES)
251 set(CMAKE_REQUIRED_LIBRARIES)
252 endif()
253
254 option(USE_INCLUDED_FLTK
255 "Force the use of the FLTK library bundled with the TigerVNC source")
256 if(NOT FLTK_FOUND OR NOT HAVE_FLTK_DEAD_KEYS OR NOT HAVE_FLTK_CLIPBOARD
257 OR NOT HAVE_FLTK_MEDIAKEYS OR NOT HAVE_FLTK_FULLSCREEN
258 OR NOT HAVE_FLTK_CURSOR)
259 set(USE_INCLUDED_FLTK 1)
260 endif()
261 if(USE_INCLUDED_FLTK)
DRC2ff39b82011-07-28 08:38:59 +0000262 set(FLTK_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/common/fltk)
263 set(FLTK_LIBRARIES)
264 if(APPLE)
265 set(FLTK_LIBRARIES "-framework Carbon -framework Cocoa -framework ApplicationServices")
266 endif()
267 message(STATUS "Using included FLTK library")
268 endif()
269
Pierre Ossman5156d5e2011-03-09 09:42:34 +0000270endif()
271
Adam Tkac125bd252011-01-19 14:20:34 +0000272# Check for GNUTLS library
Pierre Ossman95064202011-05-30 12:22:39 +0000273option(ENABLE_GNUTLS "Enable protocol encryption and advanced authentication" ON)
Pierre Ossman32c88c42011-05-27 11:50:58 +0000274if(ENABLE_GNUTLS)
Pierre Ossman95064202011-05-30 12:22:39 +0000275 find_package(GnuTLS)
276 if (GNUTLS_FOUND)
277 include_directories(${GNUTLS_INCLUDE_DIR})
278 add_definitions("-DHAVE_GNUTLS")
279 add_definitions(${GNUTLS_DEFINITIONS})
280
281 # Detect old version of GnuTLS
DRC17331b92011-06-07 04:07:20 +0000282 set(CMAKE_REQUIRED_FLAGS -I${GNUTLS_INCLUDE_DIR})
Pierre Ossman95064202011-05-30 12:22:39 +0000283 set(CMAKE_EXTRA_INCLUDE_FILES gnutls/gnutls.h)
DRC17331b92011-06-07 04:07:20 +0000284 set(CMAKE_REQUIRED_LIBRARIES ${GNUTLS_LIBRARIES})
DRC56e625c2011-06-24 03:19:28 +0000285 if(WIN32)
286 set(CMAKE_EXTRA_INCLUDE_FILES gcrypt.h ${CMAKE_EXTRA_INCLUDE_FILES})
287 set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ws2_32 user32)
288 endif()
DRC17331b92011-06-07 04:07:20 +0000289 if(ZLIB_FOUND)
290 # When we build against the static version of GnuTLS, we also use the
291 # included version of Zlib, but it isn't built yet, so we have to use the
292 # system's version (if available) to perform this test.
293 set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES};-lz)
294 endif()
Pierre Ossman95064202011-05-30 12:22:39 +0000295 check_function_exists(gnutls_transport_set_global_errno HAVE_OLD_GNUTLS)
296 check_function_exists(gnutls_x509_crt_print HAVE_GNUTLS_X509_CRT_PRINT)
297 check_type_size(gnutls_x509_crt_t GNUTLS_X509_CRT_T)
298 check_type_size(gnutls_datum_t GNUTLS_DATUM_T)
299 check_type_size(gnutls_pk_algorithm_t GNUTLS_PK_ALGORITHM_T)
300 check_type_size(gnutls_sign_algorithm_t GNUTLS_SIGN_ALGORITHM_T)
DRC17331b92011-06-07 04:07:20 +0000301 set(CMAKE_REQUIRED_FLAGS)
Pierre Ossman95064202011-05-30 12:22:39 +0000302 set(CMAKE_EXTRA_INCLUDE_FILES)
303 set(CMAKE_REQUIRED_LIBRARIES)
304 endif()
Adam Tkac125bd252011-01-19 14:20:34 +0000305endif()
306
DRC777290b2011-06-22 00:18:17 +0000307# Check for PAM library
308option(ENABLE_PAM "Enable PAM authentication support" ON)
309if(ENABLE_PAM)
310 check_include_files(security/pam_appl.h HAVE_PAM_H)
311 set(CMAKE_REQUIRED_LIBRARIES -lpam)
312 check_function_exists(pam_start HAVE_PAM_START)
313 set(CMAKE_REQUIRED_LIBRARIES)
314 if(HAVE_PAM_H AND HAVE_PAM_START)
315 set(PAM_LIBS pam)
316 else()
317 set(ENABLE_PAM 0)
318 endif()
319endif()
320set(HAVE_PAM ${ENABLE_PAM})
321
Pierre Ossmanee0e3622011-03-08 13:08:15 +0000322# Check for socket functions
Henrik Anderssone1fd8e12011-03-08 13:00:12 +0000323if(WIN32)
Pierre Ossman0153e232011-03-08 13:05:27 +0000324 set(CMAKE_EXTRA_INCLUDE_FILES winsock2.h ws2tcpip.h)
Henrik Anderssone1fd8e12011-03-08 13:00:12 +0000325 set(CMAKE_REQUIRED_LIBRARIES ws2_32)
Pierre Ossman0153e232011-03-08 13:05:27 +0000326else()
327 set(CMAKE_EXTRA_INCLUDE_FILES sys/socket.h)
Henrik Anderssone1fd8e12011-03-08 13:00:12 +0000328endif()
DRC63758092010-11-09 19:24:12 +0000329check_function_exists(inet_aton HAVE_INET_ATON)
330check_function_exists(inet_ntop HAVE_INET_NTOP)
Henrik Anderssone1fd8e12011-03-08 13:00:12 +0000331check_type_size(socklen_t SOCKLEN_T)
DRC63758092010-11-09 19:24:12 +0000332set(CMAKE_EXTRA_INCLUDE_FILES)
333set(CMAKE_REQUIRED_LIBRARIES)
Pierre Ossmanee0e3622011-03-08 13:08:15 +0000334
335# Check for the newer standard string functions
DRC63758092010-11-09 19:24:12 +0000336check_function_exists(snprintf HAVE_SNPRINTF)
337check_function_exists(strcasecmp HAVE_STRCASECMP)
338check_function_exists(strncasecmp HAVE_STRNCASECMP)
339check_function_exists(vsnprintf HAVE_VSNPRINTF)
Pierre Ossmanee0e3622011-03-08 13:08:15 +0000340
341# Generate config.h and make sure the source finds it
DRC1980dd52011-06-24 19:28:27 +0000342configure_file(config.h.in config.h)
DRC63758092010-11-09 19:24:12 +0000343add_definitions(-DHAVE_CONFIG_H)
344include_directories(${CMAKE_BINARY_DIR})
DRC180c0162010-10-27 07:20:27 +0000345
DRC180c0162010-10-27 07:20:27 +0000346add_subdirectory(common)
Pierre Ossman8f64ef72011-03-08 16:32:49 +0000347
348if(WIN32)
349 add_subdirectory(win)
350else()
Henrik Anderssona7a38a62011-06-10 13:05:09 +0000351 # No interest in building x related parts on Apple
352 if(NOT APPLE)
353 add_subdirectory(unix)
354 endif()
Pierre Ossman8f64ef72011-03-08 16:32:49 +0000355endif()
Pierre Ossman5156d5e2011-03-09 09:42:34 +0000356
357if(BUILD_NEW_VNCVIEWER)
DRCd0b64c92011-06-07 04:07:41 +0000358 if(ENABLE_NLS)
359 add_subdirectory(po)
360 endif()
Pierre Ossman5156d5e2011-03-09 09:42:34 +0000361 add_subdirectory(vncviewer)
362endif()
DRC1a184072011-06-24 06:55:18 +0000363
364include(cmake/BuildPackages.cmake)
DRCb7140022011-06-25 07:33:57 +0000365
366# uninstall
367configure_file("${CMAKE_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
368 "cmake_uninstall.cmake" IMMEDIATE @ONLY)
369
370add_custom_target(uninstall COMMAND ${CMAKE_COMMAND} -P cmake_uninstall.cmake)