Structs§
- AddCompile
Definitions - Add preprocessor definitions to the compilation of source files.
- AddCompile
Options - Adds options to the compilation of source files.
- AddCustom
Target - Add a target with no output so it will always be built.
- AddDefinitions
- Add -D define flags to the compilation of source files.
- AddDependencies
- Add a dependency between top-level targets.
- AddExecutable
- Add an executable to the project using the specified source files.
- AddLibrary
- Add a library to the project using the specified source files.
- AddLink
Options - Add options to the link step for executable, shared library or module library targets in the current directory and below that are added after this command is invoked.
- AddSubdirectory
- Add a subdirectory to the build.
- AddTest
- Add a test to the project to be run by ctest.
- AuxSource
Directory - Find all source files in a directory.
- Create
Test Source List - Create a test driver and source list for building test programs.
- Define
Property - Define and document custom properties.
- Enable
Language - Enable languages (CXX/C/OBJC/OBJCXX/Fortran/etc)
- FLTK
WrapUI - Create FLTK user interfaces Wrappers.
- GetSource
File Property - Get a property for a source file.
- GetTarget
Property - Get a property from a target.
- GetTest
Property - Get a property of the test.
- Include
Directories - Add include directories to the build.
- Include
ExternalMS Project - Include an external Microsoft project file in a workspace.
- Include
Regular Expression - Set the regular expression used for dependency checking.
- Link
Directories - Add directories in which the linker will look for libraries.
- Link
Libraries - Link libraries to all targets added later.
- Project
- Set the name of the project.
- Remove
Definitions - Remove -D define flags added by add_definitions().
- SetSource
File Properties - Sets properties associated with source files using a key/value paired list.
- SetTarget
Properties - Sets properties on targets.
- SetTests
Properties - Set a property of the tests.
- Target
Compile Definitions - Add compile definitions to a target.
- Target
Compile Features - Add expected compiler features to a target.
- Target
Compile Options - Add compile options to a target.
- Target
Include Directories - Add include directories to a target.
- Target
Link Directories - Add link directories to a target.
- Target
Link Options - Add options to the link step for an executable, shared library or module library target.
- Target
Sources - Add sources to a target.
Enums§
- AddCustom
Command - Add a custom build rule to the generated build system.
- Build
Command - Get a command line to build the current project.
- Export
- Export targets or packages for outside projects to use them directly from the current project’s build tree, without installation.
- Install
- Specify rules to run at install time.
- Load
Cache - Load in the values from another project’s CMake cache.
- Source
Group - Define a grouping for source files in IDE project generation.
- Target
Link Libraries - Specify libraries or flags to use when linking a given target and/or its dependents.
- Target
Precompile Headers - Add a list of header files to precompile.
- TryCompile
- Try building some code.
- TryRun
- Try compiling and then running some code.