Automatically disable NLS if gettext and/or libiconv are missing. On some platforms, such as Windows and OS X, NLS can't be enabled without a lot of custom configuration, so the build simply fails on those platforms unless -DENABLE_NLS=0 is specified. This change makes the CMake system behave more like autotools used to, and it is consistent with the detection behavior of other non-essential modules, such as GnuTLS.
We don't use fltk_images or fltk_forms, so don't try to detect those (otherwise, when linking against libfltk.a, the build system will try to link with libfltk_images.a and libfltk_forms.a as well, which can introduce external dependencies that we don't want.)
Exclude unix directory from compile on Apple platform,
no use for x server realted tools on this platform.
--Thiline, and those below, will be ignored--
M CMakeLists.txt
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4490 3789f03b-4d11-0410-bbf8-ca57d06f2519
Building the Xvnc server requires libtool control files of rdr, rfb,
network and Xregion, which a cmake build will NOT produce, this macro
tries to create a libtool control file *.la for the specified target
with libdependencies for a static library target.
Due to the automake part of Xvnc references to libtool files in source
tree you need to build vncviewer using cmake in the source tree.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4482 3789f03b-4d11-0410-bbf8-ca57d06f2519
If JPEG_INCLUDE_DIR or JPEG_LIBRARY have been overridden on the CMake command line (necessary when building against the libjpeg-turbo SDK, which is installed in /opt/libjpeg-turbo), then use the overridden values when performing the test to determine whether or not the JPEG library is libjpeg-turbo.
The initial fix for FLTK to handle dead keys broke CJK input, so a new method
had to be devised. Adopt our code to the new version.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4411 3789f03b-4d11-0410-bbf8-ca57d06f2519
Finish up the gettext handling in CMake. The included functions in CMake only
take care of finding the gettext tools, not the headers and libraries needed
to build things. Use the licq project as inspiration on how to solve this.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4389 3789f03b-4d11-0410-bbf8-ca57d06f2519
This patch adds gettext support for our new vncviewer. CMake only. The
change of the project name is to make the CMake build behave like the
Autotools build - define PACKAGE_NAME in the same way.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4388 3789f03b-4d11-0410-bbf8-ca57d06f2519
Complete misunderstanding on my part. CMAKE_CL_64 indicates a _Microsoft_
compiler and is not a generic test for 64-bit. Start looking at the size
of void* instead.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4325 3789f03b-4d11-0410-bbf8-ca57d06f2519
Clean up the 64-bit handling a bit. Trust CMake to tell use when we have a
64-bit target, and we don't actually use the WIN64 variable anywhere.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4317 3789f03b-4d11-0410-bbf8-ca57d06f2519