wxWidgets/build/cmake
Tobias Taschner 6d7f35090d
Removed macOS only wxWebKitCtrl
This macOS only class duplicated functionality and code of wxWebView.
2020-12-14 10:17:35 +01:00
..
demos CMake: use wx prefix in library names 2020-05-17 20:01:02 +02:00
lib Removed macOS only wxWebKitCtrl 2020-12-14 10:17:35 +01:00
modules Fix linking issues with wxGLCanvasEGL for cmake 2020-09-12 15:54:15 -07:00
samples Removed macOS only wxWebKitCtrl 2020-12-14 10:17:35 +01:00
tests CMake: add image test files 2020-10-20 21:11:17 +02:00
utils CMake: fix building and copying wxrc util for iOS 2020-06-18 20:28:36 +02:00
config.cmake Allow CMake dependencies to be interfaces 2020-09-29 03:27:38 +02:00
files.cmake Removed macOS only wxWebKitCtrl 2020-12-14 10:17:35 +01:00
functions.cmake Enable position independent code by default 2020-08-06 21:43:41 +02:00
init.cmake CMake: disable wxUSE_GLCANVAS_EGL in non-GTK3 builds 2020-10-18 18:53:56 +02:00
install.cmake CMake: Create wx-config for MinGW builds 2020-02-16 16:35:24 +01:00
main.cmake CMake: Create wx-config for MinGW builds 2020-02-16 16:35:24 +01:00
options.cmake Removed macOS only wxWebKitCtrl 2020-12-14 10:17:35 +01:00
policies.cmake CMake: set policy for VERSION variables 2020-05-24 22:20:05 +02:00
README.md
setup.cmake CMake: remove HAVE_VARIADIC_MACROS check 2020-10-20 20:39:05 +02:00
setup.h.in Remove variadic macros test from configure 2020-10-20 01:59:00 +02:00
source_groups.cmake CMake: fix file names in info header 2020-05-17 20:01:02 +02:00
toolkit.cmake CMake: fix try_compile and other checks for iOS build 2020-06-18 20:28:42 +02:00
uninstall.cmake.in

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