A CMake Generator is responsible for writing the input files for a native build system. Exactly one of the CMake 生成器 must be selected for a build tree to determine what native build system is to be used. Optionally one of the 额外生成器 may be selected as a variant of some of the 命令行构建工具生成器 to produce project files for an auxiliary IDE.
CMake Generators are platform-specific so each may be available only
on certain platforms. The
output lists available generators on the current platform. Use its
option to specify the generator for a new build tree.
offers interactive selection of a generator
when creating a new build tree.
These generators support command-line build tools. In order to use them, one must launch CMake from a command-line prompt whose environment is already configured for the chosen compiler and build tool.
These generators support Integrated Development Environment (IDE) project files. Since the IDEs configure their own environment one may launch CMake from any environment.
Some of the
listed in the
output may have variants that specify
an extra generator for an auxiliary IDE tool. Such generator
names have the form
The following extra generators are known to CMake.