Module project

Source

Structs§

AddCompileDefinitions
Add preprocessor definitions to the compilation of source files.
AddCompileOptions
Adds options to the compilation of source files.
AddCustomTarget
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.
AddLinkOptions
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.
AuxSourceDirectory
Find all source files in a directory.
CreateTestSourceList
Create a test driver and source list for building test programs.
DefineProperty
Define and document custom properties.
EnableLanguage
Enable languages (CXX/C/OBJC/OBJCXX/Fortran/etc)
FLTKWrapUI
Create FLTK user interfaces Wrappers.
GetSourceFileProperty
Get a property for a source file.
GetTargetProperty
Get a property from a target.
GetTestProperty
Get a property of the test.
IncludeDirectories
Add include directories to the build.
IncludeExternalMSProject
Include an external Microsoft project file in a workspace.
IncludeRegularExpression
Set the regular expression used for dependency checking.
LinkDirectories
Add directories in which the linker will look for libraries.
LinkLibraries
Link libraries to all targets added later.
Project
Set the name of the project.
RemoveDefinitions
Remove -D define flags added by add_definitions().
SetSourceFileProperties
Sets properties associated with source files using a key/value paired list.
SetTargetProperties
Sets properties on targets.
SetTestsProperties
Set a property of the tests.
TargetCompileDefinitions
Add compile definitions to a target.
TargetCompileFeatures
Add expected compiler features to a target.
TargetCompileOptions
Add compile options to a target.
TargetIncludeDirectories
Add include directories to a target.
TargetLinkDirectories
Add link directories to a target.
TargetLinkOptions
Add options to the link step for an executable, shared library or module library target.
TargetSources
Add sources to a target.

Enums§

AddCustomCommand
Add a custom build rule to the generated build system.
BuildCommand
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.
LoadCache
Load in the values from another project’s CMake cache.
SourceGroup
Define a grouping for source files in IDE project generation.
TargetLinkLibraries
Specify libraries or flags to use when linking a given target and/or its dependents.
TargetPrecompileHeaders
Add a list of header files to precompile.
TryCompile
Try building some code.
TryRun
Try compiling and then running some code.