2013-10-30 17:58:25 +04:00
|
|
|
.. cmake-manual-description: CMake Generators Reference
|
|
|
|
|
2013-10-15 19:17:36 +04:00
|
|
|
cmake-generators(7)
|
|
|
|
*******************
|
|
|
|
|
2014-11-06 19:37:24 +03:00
|
|
|
.. only:: html
|
2013-10-15 19:17:36 +04:00
|
|
|
|
|
|
|
.. contents::
|
|
|
|
|
2013-11-25 18:58:52 +04:00
|
|
|
Introduction
|
|
|
|
============
|
|
|
|
|
|
|
|
A *CMake Generator* is responsible for writing the input files for
|
|
|
|
a native build system. Exactly one of the `CMake Generators`_ must be
|
|
|
|
selected for a build tree to determine what native build system is to
|
|
|
|
be used. Optionally one of the `Extra Generators`_ may be selected
|
|
|
|
as a variant of some of the `Command-Line Build Tool Generators`_ to
|
|
|
|
produce project files for an auxiliary IDE.
|
|
|
|
|
|
|
|
CMake Generators are platform-specific so each may be available only
|
|
|
|
on certain platforms. The :manual:`cmake(1)` command-line tool ``--help``
|
|
|
|
output lists available generators on the current platform. Use its ``-G``
|
|
|
|
option to specify the generator for a new build tree.
|
|
|
|
The :manual:`cmake-gui(1)` offers interactive selection of a generator
|
|
|
|
when creating a new build tree.
|
|
|
|
|
|
|
|
CMake Generators
|
|
|
|
================
|
|
|
|
|
|
|
|
Command-Line Build Tool Generators
|
|
|
|
----------------------------------
|
|
|
|
|
|
|
|
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.
|
2013-10-15 19:17:36 +04:00
|
|
|
|
2015-04-03 18:04:57 +03:00
|
|
|
.. _`Makefile Generators`:
|
|
|
|
|
|
|
|
Makefile Generators
|
|
|
|
^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2013-10-15 19:17:36 +04:00
|
|
|
.. toctree::
|
2013-11-01 19:12:02 +04:00
|
|
|
:maxdepth: 1
|
|
|
|
|
2013-10-15 19:17:36 +04:00
|
|
|
/generator/Borland Makefiles
|
|
|
|
/generator/MSYS Makefiles
|
2013-11-25 18:58:52 +04:00
|
|
|
/generator/MinGW Makefiles
|
2013-10-15 19:17:36 +04:00
|
|
|
/generator/NMake Makefiles
|
2013-11-25 18:58:52 +04:00
|
|
|
/generator/NMake Makefiles JOM
|
2013-10-15 19:17:36 +04:00
|
|
|
/generator/Unix Makefiles
|
2013-11-25 18:58:52 +04:00
|
|
|
/generator/Watcom WMake
|
|
|
|
|
2015-04-03 18:04:57 +03:00
|
|
|
Ninja Generator
|
|
|
|
^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
|
|
|
/generator/Ninja
|
|
|
|
|
2013-11-25 18:58:52 +04:00
|
|
|
IDE Build Tool Generators
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
These generators support Integrated Development Environment (IDE)
|
|
|
|
project files. Since the IDEs configure their own environment
|
|
|
|
one may launch CMake from any environment.
|
|
|
|
|
2015-04-03 18:04:57 +03:00
|
|
|
.. _`Visual Studio Generators`:
|
|
|
|
|
|
|
|
Visual Studio Generators
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2013-11-25 18:58:52 +04:00
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
2013-10-15 19:17:36 +04:00
|
|
|
/generator/Visual Studio 6
|
|
|
|
/generator/Visual Studio 7
|
2013-11-25 18:58:52 +04:00
|
|
|
/generator/Visual Studio 7 .NET 2003
|
2013-10-15 19:17:36 +04:00
|
|
|
/generator/Visual Studio 8 2005
|
|
|
|
/generator/Visual Studio 9 2008
|
2013-11-25 18:58:52 +04:00
|
|
|
/generator/Visual Studio 10 2010
|
|
|
|
/generator/Visual Studio 11 2012
|
|
|
|
/generator/Visual Studio 12 2013
|
2014-11-14 22:21:50 +03:00
|
|
|
/generator/Visual Studio 14 2015
|
2016-11-29 15:50:21 +03:00
|
|
|
/generator/Visual Studio 15 2017
|
2015-04-03 18:04:57 +03:00
|
|
|
|
2015-05-07 22:51:46 +03:00
|
|
|
Other Generators
|
|
|
|
^^^^^^^^^^^^^^^^
|
2015-04-03 18:04:57 +03:00
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
2015-05-07 22:51:46 +03:00
|
|
|
/generator/Green Hills MULTI
|
2013-10-15 19:17:36 +04:00
|
|
|
/generator/Xcode
|
2013-11-25 18:58:52 +04:00
|
|
|
|
|
|
|
Extra Generators
|
|
|
|
================
|
|
|
|
|
|
|
|
Some of the `CMake Generators`_ listed in the :manual:`cmake(1)`
|
|
|
|
command-line tool ``--help`` output may have variants that specify
|
|
|
|
an extra generator for an auxiliary IDE tool. Such generator
|
|
|
|
names have the form ``<extra-generator> - <main-generator>``.
|
|
|
|
The following extra generators are known to CMake.
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
|
|
|
/generator/CodeBlocks
|
2014-01-10 11:20:11 +04:00
|
|
|
/generator/CodeLite
|
2013-11-25 18:58:52 +04:00
|
|
|
/generator/Eclipse CDT4
|
|
|
|
/generator/KDevelop3
|
2013-11-16 19:13:13 +04:00
|
|
|
/generator/Kate
|
2013-11-25 18:58:52 +04:00
|
|
|
/generator/Sublime Text 2
|