Maarten Bent
5c2d186132
CMake: Add variable to indicate if c++11 or later is enabled
...
Use it in macOS checks.
2020-04-07 19:28:46 +02:00
Maarten Bent
c8209a5111
CMake: Set wxBUILD_CXX_STANDARD globally instead of only on targets
...
This way the tests in setup.cmake will use the correct c++ version.
2020-04-07 19:09:58 +02:00
Maarten Bent
016061311a
CMake: Add wxBUILD_FLAVOUR option
...
It is similar to --with-flavour option from configure.
Mark some build options as advanced.
2020-02-16 21:33:44 +01:00
Maarten Bent
4196c67b72
CMake: Create wx-config for MinGW builds
...
Use the same output folder for setup.h and wx-config as configure does.
2020-02-16 16:35:24 +01:00
Maarten Bent
ce968d0ecb
Enable building without wxUSE_WEBVIEW_IE
2020-01-17 09:37:12 +01:00
Maarten Bent
a6bfd845b4
CMake: find PangoFT2 when wxUSE_PRIVATE_FONTS is enabled in GTK
...
Rewrite and simplify FindFontconfig.
2019-11-29 00:21:25 +01:00
Maarten Bent
b42de093f6
CMake: disable wxUSE_MIMETYPE when wxUSE_TEXTFILE is disabled
2019-11-27 21:24:32 +01:00
Maarten Bent
51fc85f16a
CMake: disable options when ole or ActiveX is not available
2019-11-27 21:24:32 +01:00
Vadim Zeitlin
d7a640933d
Remove wxUSE_WCHAR_T, it must always be 1 anyhow
...
This is not really an option as building requires it to be 1, so don't
make it one in setup.h/configure/cmake and just hardcode it as 1 for
compatibility.
Closes #18558 .
2019-10-31 02:16:19 +01:00
Maarten Bent
7f5ca2a4cb
CMake: Fix detecting AppleClang
...
Policies are now correctly initialized (before creating the project).
Policy CMP0025 changes the compilerID of Clang on Apple, handle this correctly.
2019-07-19 21:13:04 +02:00
Maarten Bent
60b0a1fde2
CMake: Fix MSVC warning when using NMake
...
Fix warning: Command line warning D9025 : overriding '/W3' with '/W4'
Remove /W3, either via a regex or via new policy CMP0092 (CMake 3.15).
The policy has to be set before calling project(), otherwise the
CMAKE_<LANG>_FLAGS are already initialized.
See https://trac.wxwidgets.org/ticket/18438
2019-07-19 01:09:36 +02:00
Maarten Bent
181a03fc73
CMake: Only use -fno-rtti for C++
...
Using it for C generates the following warning:
command line option '-fno-rtti' is valid for C++/D/ObjC++ but not for C
2019-07-19 01:09:36 +02:00
Deamhan
0be2d94189
CMake: add an option for using preferred release build flags
...
Add wxUSE_OPTIMISE build option.
See #18436 .
Closes https://github.com/wxWidgets/wxWidgets/pull/1399
2019-07-16 18:34:57 +02:00
Vadim Zeitlin
c219b53a2d
Merge branch 'cmake-gcc-static' of https://github.com/Deamhan/wxWidgets
...
Add support for using static CRT libraries with gcc to CMake build.
See https://github.com/wxWidgets/wxWidgets/pull/1398
2019-07-16 18:25:52 +02:00
Deamhan
7c8d5dd36d
CMake: -Wl,--exclude-libs=ALL has been removed for MinGW
2019-07-16 08:24:24 +03:00
Deamhan
f4a0ac93e3
CMake: wxUSE_VISIBILITY is non windows option now & -Wl,--exclude-libs=ALL has been added in MinGW case.
2019-07-15 19:13:58 +03:00
pk
1d52cf1d2d
CMake: some cleanup
2019-07-15 11:05:43 +03:00
Deamhan
7be4d12749
CMake: pthread symbols has been removed from export (MinGW)
2019-07-15 00:10:45 +03:00
Deamhan
82dfc62a62
CMake: multiple definition issue (MinGW) has been fixed
2019-07-14 23:58:09 +03:00
Deamhan
b92c30191c
CMake: Add wxUSE_NO_RTTI option
...
This is similar to configure --enable-no_rtti option.
Closes https://github.com/wxWidgets/wxWidgets/pull/1405
2019-07-13 16:57:51 +02:00
Deamhan
59245dd232
CMake: Don't use /EHa for MSVS
...
This is unnecessary and may result in worse performance for the
generated code.
Closes #18436 .
Closes https://github.com/wxWidgets/wxWidgets/pull/1396
2019-07-13 16:23:11 +02:00
Deamhan
fbac773fed
CMake: MATCH -> STREQUAL for clang
2019-07-13 00:40:01 +03:00
Deamhan
4742c32c75
CMake: wxBUILD_USE_STATIC_RUNTIME was enabled for clang
2019-07-13 00:29:18 +03:00
pk
b93fce30f3
CMake: CMAKE_COMPILER_IS_GNUCC has been replaced
2019-07-11 12:01:38 +03:00
Deamhan
e0ad857a2d
CMake: MinGW multiple definition issue has been fixed (wxBUILD_USE_STATIC_RUNTIME)
2019-07-10 11:30:31 +03:00
Deamhan
afcec3eefc
CMake: wxBUILD_USE_STATIC_RUNTIME is available for GCC now
2019-07-09 17:48:59 +03:00
Maarten Bent
9732a2d99f
CMake: Allow to toggle between static and dynamic MSVC runtime
...
After enabling wxBUILD_USE_STATIC_RUNTIME it cannot be disabled again
(except by manually modifying CMAKE_C*_FLAGS_*). Improve this by setting
the build flags to their default value when wxBUILD_USE_STATIC_RUNTIME
is disabled.
Closes https://github.com/wxWidgets/wxWidgets/pull/1338
2019-06-07 16:39:16 +02:00
Maarten Bent
6be0e7749c
CMake: don't search SDL on macOS
...
It doesn't compile when enabled.
2019-02-03 19:01:00 +01:00
NikitaFeodonit
3510319048
CMake: add processing the C flags for wxBUILD_USE_STATIC_RUNTIME
2019-01-21 13:45:46 +03:00
Maarten Bent
c1013d9bfc
CMake: Add more option validity checks
2018-12-12 21:28:01 +01:00
Maarten Bent
91b6305dcd
CMake: Improve checking for external libraries
...
Do not abort when libLZMA or libSecret can not be found, just show a warning.
Do not search for libSecret on macOS.
Disable libraries internally (not in cache) when not searching for them.
2018-12-12 21:28:00 +01:00
Maarten Bent
b9d31dffc5
CMake: Improve finding Iconv
...
Continue when Iconv can not be found.
Silence warnings when testing if second argument for iconv() is const.
Use correct include dir.
2018-12-12 21:27:57 +01:00
Maarten Bent
14570b4fa3
CMake: Find more external libraries
...
Check for LibNotify, MSpack, XTest and GnomeVFS2.
2018-12-12 21:27:56 +01:00
Maarten Bent
e984857b0e
CMake: Improve webview checks
...
Try to match behavior of configure.
Fix building webview sample with STC disabled.
2018-12-03 00:20:38 +01:00
Maarten Bent
271ed4d990
CMake: Support SDL audio back-end
...
Rename UNIX_SOUND_SRC_SDL to UNIX_SOUND_SDL_SRC to match the
signature of other variables (ending with _HDR or _SRC).
2018-12-02 17:45:32 +01:00
Maarten Bent
1c5cbe0a61
CMake: Add support for webkit2
2018-12-02 03:21:33 +01:00
Maarten Bent
e1e5169e4b
CMake: enable Direct2D graphics context by default
...
Disable it when the d2d1.h header is not found.
When using MSVC, match the behaviour of setup.h.
2018-11-04 16:49:14 +01:00
Maarten Bent
5c4741430a
CMake: move find_package for lzma and secretstore to init.cmake
2018-11-04 16:35:58 +01:00
Maarten Bent
d293f94d95
CMake: improve finding gstreamer
...
Support checking for multiple versions, first check gstreamer-1.0, then gstreamer-0.10.
Add support for finding gstreamer-player.
Specify the required components, add the include directories and link with the libraries of the found components.
Set the setup variables wxUSE_GSTREAMER and wxUSE_GSTREAMER_PLAYER.
2018-11-04 16:35:57 +01:00
Maarten Bent
f1cf525944
Add CMake option to set wxDEBUG_LEVEL
...
It is no use adding it to the generated setup.h because this section is commented out,
so add it as compiler option instead.
The default option is 'Default' in which case no compiler option is added.
2018-10-25 20:46:31 +02:00
Maarten Bent
519d8fec8a
Disable wxUSE_OWNER_DRAWN when using WXQT with CMake
2018-10-01 21:43:19 +02:00
Maarten Bent
fa19acacbe
Improve WXGTK build on Windows with CMake
2018-09-30 19:49:54 +02:00
Maarten Bent
1dfe088b4d
Support WXQT in CMake
2018-09-30 17:23:57 +02:00
Maarten Bent
0bf459de92
Fix typos and whitespace in CMake files.
2018-08-17 20:00:47 +02:00
Maarten Bent
ceda6f6815
Support clang compiler on Windows when using CMake
2018-08-16 21:18:44 +02:00
Maarten Bent
df6b47bc6d
CMake: Correct header for debug builds in MinGW compiler
2018-05-17 19:33:19 +02:00
Maarten Bent
db49de9668
CMake: correctly detect 64bit for MinGW compilers
...
CMAKE_CL_64 is only defined when using the 64 bit cl compiler from Microsoft.
2018-05-17 19:30:59 +02:00
Tobias Taschner
623a9123a1
CMake: Enable multi-processor compilation for MSVC
...
Add option wxBUILD_MSVC_MULTIPROC which defaults to ON
to add /MP the MSVC compiler options.
2018-02-08 21:13:44 +01:00
Maarten Bent
e6b9b571ab
CMake: fix and add more options
...
Don't overwrite options in setup.cmake.
Align text in summary message.
Always set wxUSE_XRC to values of wxUSE_XRC, same as in setup.h.
Disable wxUSE_XRC when expat is disabled.
2018-01-28 23:52:11 +01:00
Tobias Taschner
da2b8ea812
Add CMake build system
...
Add CMake build system for libraries, tests and samples
update_files.py converts build/files into CMake format.
build/update-setup-h has been modified to update build/cmake/setup.h.in.
2017-01-03 20:53:10 +01:00