cmake-generators.7.rst 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. .. cmake-manual-description: CMake Generators Reference
  2. cmake-generators(7)
  3. *******************
  4. .. only:: html
  5. .. contents::
  6. Introduction
  7. ============
  8. A *CMake Generator* is responsible for writing the input files for
  9. a native build system. Exactly one of the `CMake Generators`_ must be
  10. selected for a build tree to determine what native build system is to
  11. be used. Optionally one of the `Extra Generators`_ may be selected
  12. as a variant of some of the `Command-Line Build Tool Generators`_ to
  13. produce project files for an auxiliary IDE.
  14. CMake Generators are platform-specific so each may be available only
  15. on certain platforms. The :manual:`cmake(1)` command-line tool
  16. :option:`--help <cmake --help>` output lists available generators on the
  17. current platform. Use its :option:`-G <cmake -G>` option to specify the
  18. generator for a new build tree. The :manual:`cmake-gui(1)` offers
  19. interactive selection of a generator when creating a new build tree.
  20. CMake Generators
  21. ================
  22. .. _`Command-Line Build Tool Generators`:
  23. Command-Line Build Tool Generators
  24. ----------------------------------
  25. These generators support command-line build tools. In order to use them,
  26. one must launch CMake from a command-line prompt whose environment is
  27. already configured for the chosen compiler and build tool.
  28. .. _`Makefile Generators`:
  29. Makefile Generators
  30. ^^^^^^^^^^^^^^^^^^^
  31. .. toctree::
  32. :maxdepth: 1
  33. /generator/Borland Makefiles
  34. /generator/MSYS Makefiles
  35. /generator/MinGW Makefiles
  36. /generator/NMake Makefiles
  37. /generator/NMake Makefiles JOM
  38. /generator/Unix Makefiles
  39. /generator/Watcom WMake
  40. .. _`Ninja Generators`:
  41. Ninja Generators
  42. ^^^^^^^^^^^^^^^^
  43. .. toctree::
  44. :maxdepth: 1
  45. /generator/Ninja
  46. /generator/Ninja Multi-Config
  47. FASTBuild Generator
  48. ^^^^^^^^^^^^^^^^^^^
  49. .. toctree::
  50. :maxdepth: 1
  51. /generator/FASTBuild
  52. .. _`IDE Build Tool Generators`:
  53. IDE Build Tool Generators
  54. -------------------------
  55. These generators support Integrated Development Environment (IDE)
  56. project files. Since the IDEs configure their own environment
  57. one may launch CMake from any environment.
  58. .. _`Visual Studio Generators`:
  59. Visual Studio Generators
  60. ^^^^^^^^^^^^^^^^^^^^^^^^
  61. .. toctree::
  62. :maxdepth: 1
  63. /generator/Visual Studio 6
  64. /generator/Visual Studio 7
  65. /generator/Visual Studio 7 .NET 2003
  66. /generator/Visual Studio 8 2005
  67. /generator/Visual Studio 9 2008
  68. /generator/Visual Studio 10 2010
  69. /generator/Visual Studio 11 2012
  70. /generator/Visual Studio 12 2013
  71. /generator/Visual Studio 14 2015
  72. /generator/Visual Studio 15 2017
  73. /generator/Visual Studio 16 2019
  74. /generator/Visual Studio 17 2022
  75. /generator/Visual Studio 18 2026
  76. Other Generators
  77. ^^^^^^^^^^^^^^^^
  78. .. toctree::
  79. :maxdepth: 1
  80. /generator/Green Hills MULTI
  81. /generator/Xcode
  82. .. _`Extra Generators`:
  83. Extra Generators
  84. ================
  85. .. deprecated:: 3.27
  86. Support for "Extra Generators" is deprecated and will be removed from
  87. a future version of CMake. IDEs may use the :manual:`cmake-file-api(7)`
  88. to view CMake-generated project build trees.
  89. Some of the `CMake Generators`_ listed in the :manual:`cmake(1)`
  90. command-line tool :option:`--help <cmake --help>` output may have
  91. variants that specify an extra generator for an auxiliary IDE tool.
  92. Such generator names have the form ``<extra-generator> - <main-generator>``.
  93. The following extra generators are known to CMake.
  94. .. toctree::
  95. :maxdepth: 1
  96. /generator/CodeBlocks
  97. /generator/CodeLite
  98. /generator/Eclipse CDT4
  99. /generator/Kate
  100. /generator/Sublime Text 2