wxWidgets/build/cmake
PB 77d8926126 Simplify Windows application manifests
In section "dependency" use "*" in processorArchitecture instead of specifying
the concrete architecture such as "amd64" or "x86". This allows to have just one
manifest for all architectures instead of having them for all supported architectures
individually differing in just processorArchitecture.
2021-12-17 16:57:45 +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 CMake: Use PCRE2 system library when available 2021-07-25 12:23:07 +02:00
modules CMake: Enable wxUSE_SPELLCHECK 2021-10-17 14:55:46 +02:00
samples Add a possibility to show SVG images to the image sample too 2021-11-29 12:55:22 +00:00
tests Rename testdata.fc to testdata.conf 2021-12-10 17:26:49 +01:00
utils CMake: Improve wxrc name 2021-06-06 23:38:38 +02:00
build_cfg.cmake CMake: generate build.cfg 2021-06-18 00:41:45 +02:00
build.cfg.in CMake: generate build.cfg 2021-06-18 00:41:45 +02:00
config.cmake CMake: Cleanup the wx_configure_script macro 2021-10-27 22:28:33 +02:00
files.cmake Simplify Windows application manifests 2021-12-17 16:57:45 +01:00
functions.cmake Simplify Windows application manifests 2021-12-17 16:57:45 +01:00
init.cmake CMake: Never add static runtime flags on macOS 2021-12-09 19:59:15 +01:00
install.cmake CMake: Don't include generator expression in wxPLATFORM_LIB_DIR 2021-10-17 11:52:30 +02:00
main.cmake CMake: generate build.cfg 2021-06-18 00:41:45 +02:00
options.cmake Fix description of wxUSE_SPELLCHECK option in configure and CMake 2021-10-17 19:36:56 +02:00
policies.cmake Fix linking with libcurl under MSW when using CMake 2020-12-26 15:56:56 +01:00
README.md
setup.cmake Don't bother checking for size_t, mode_t and off_t neither 2021-07-28 21:09:32 +02:00
setup.h.in Always set wxUSE_SPELLCHECK to 1 by default for simplicity 2021-08-23 14:16:16 +02:00
source_groups.cmake CMake: fix file names in info header 2020-05-17 20:01:02 +02:00
toolkit.cmake CMake: generate build.cfg 2021-06-18 00:41:45 +02:00
uninstall.cmake.in CMake: Improve installation on Linux 2018-12-02 17:45:43 +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 it's 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