wxwidgets/build/cmake
Lauri Nurmi 99bc43cefe Introduce minimal MSW ARM support
wxMSW could already be compiled for ARM with MSVC, but due to not
defining any ARCH_SUFFIX for ARM, makefile.vc used to place objectsi
and libraries to the same folder as x86 objects and libraries.

A completely different question is what kind of Windows runs on 32-bit
ARM, and whether one can run regular desktop apps on it.

This commit mimics what f69dbaa1 did for ARM64, and adapts it for ARM.

Closes #24222.
2024-01-21 01:48:16 +01:00
..
benchmarks CMake: Add benchmarks 2021-02-07 20:34:42 +01:00
demos CMake: Use common function for adding samples, tests and demos 2021-01-19 19:58:46 +01:00
lib Revert "Add debug postfix to libcef_dll_wrapper" 2024-01-06 03:20:50 +01:00
modules Merge branch 'webkit2_support_4.1' of https://github.com/swt2c/wxWidgets 2023-06-15 23:42:11 +02:00
samples CMake: Fix building webview sample with Chromium 2023-12-21 21:27:14 +01:00
tests Add new test GIF image to CMake builds too 2023-07-03 20:20:52 +02:00
utils Use DESTDIR when creating symlinks in CMake install 2022-07-24 17:06:12 +02:00
build.cfg.in Remove wxUSE_UNICODE option from CMake too 2022-10-27 19:43:30 +02:00
build_cfg.cmake Remove wxUSE_UNICODE option from CMake too 2022-10-27 19:43:30 +02:00
config.cmake CMake: Improve finding library name or path of imported targets 2023-06-13 21:22:44 +02:00
files.cmake Merge branch 'master' into webview-chromium 2024-01-17 00:22:39 +01:00
functions.cmake Revert all recent wxUSE_DPI_AWARE_MANIFEST-related changes 2023-08-25 00:03:47 +02:00
init.cmake Introduce minimal MSW ARM support 2024-01-21 01:48:16 +01:00
install.cmake Use DESTDIR when creating symlinks in CMake install 2022-07-24 17:06:12 +02:00
main.cmake CMake: Show macOS architecture in configuring summary 2023-12-21 21:31:04 +01:00
options.cmake Merge branch 'master' into webview-chromium 2024-01-17 00:22:39 +01:00
pch.cmake CMake: Fix using Cotire for precompiled headers 2023-06-13 21:19:44 +02:00
policies.cmake CMake: Fix building libcef_dll_wrapper 2023-12-21 21:19:16 +01:00
README.md Fix typos and repeated words in comments and documentation 2023-11-30 02:21:34 +01:00
setup.cmake Merge branch 'master' into webview-chromium 2024-01-17 00:22:39 +01:00
setup.h.in Define wxHAVE_CEF_DEBUG when building CEF wrapper in debug 2023-12-30 02:54:54 +01:00
source_groups.cmake CMake: fix RegularExpression::compile errors 2023-10-06 01:06:06 +02:00
toolkit.cmake Remove support for wxMotif 2022-10-16 16:39:56 +02:00
uninstall.cmake.in CMake: Improve installation on Linux 2018-12-02 17:45:43 +01:00
wxWidgetsConfig.cmake.in Fix MSW lib names for ARM64 with CMake build 2023-03-18 20:58:15 +01:00

This directory contains CMake files needed to build native build files for wxWidgets.

For building wxWidgets or using wxWidgets in your CMake project please see the CMake overview in the wxWidgets documentation.

CMake files organization

All CMake files are located in $(wx)/build/cmake additionally there is a CMakeLists.txt in the root directory.

Files

  • $(wx)/CMakeLists.txt
    • This should only contain commands and definitions which need to be contained in the top level and includes main.cmake
  • config.cmake
    • Generates config files used to find wxWidgets by other build systems
    • Creates wx-config
  • files.cmake
    • List of source files generated by $(wx)build/upmake from $(wx)build/files
    • This file should usually never be edited manually
    • However if a new group of files is added it needs to be edited manually
  • functions.cmake
    • contains various wxWidgets specific functions and macros used throughout the CMake files
    • Every function should contain a short description of its parameters as a comment before the function/macro
  • install.cmake
    • Handles definitions for the install and uninstall target
  • init.cmake
    • Initializes various variables used during the build process and for generation of setup.h and configuration files
  • main.cmake
    • Includes all other cmake files
  • options.cmake
    • All user selectable build options should be defined in this file via calls to wx_option()
  • policies.cmake
  • setup.cmake
    • Handles all tests required to create the setup.h header based platform and user settings
  • setup.h.in
    • Template for setup.h updated automatically by $(wx)/build/update-setup-h
  • source_groups.cmake
    • Define source groups used in supported IDEs
  • toolkit.cmake
    • Define toolkit specific options and detection to this file
  • uninstall.cmake.in
    • Used by install.cmake when creating the uninstall target

Sub directories

Each sub directory contains a CMakeLists.txt and might contain various other .cmake files.

  • demos
    • Defines build targets for demos via wx_add_demo()
  • lib
    • Defines build targets for all libraries and bundle third party libraries
    • Each library is contained in a separate directory and uses wx_add_library() to define the library target
    • Bundled third party library without upstream CMake support are defined in a .cmake file using wx_add_builtin_library() to define static library targets
  • modules
    • Includes CMake modules used to find third party packages via find_package()
    • Includes the cotire module used to for precompiled header generation
  • samples
    • Defines build targets for all samples via wx_add_sample()
    • Definitions for trivial samples are included in CMakeLists.txt more complex samples might have a separate .cmake file
  • tests
    • Defines build targets for all tests
  • utils
    • Defines build targets for all utilities