cmake-generators.7.rst 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. .. _`IDE Build Tool Generators`:
  48. IDE Build Tool Generators
  49. -------------------------
  50. These generators support Integrated Development Environment (IDE)
  51. project files. Since the IDEs configure their own environment
  52. one may launch CMake from any environment.
  53. .. _`Visual Studio Generators`:
  54. Visual Studio Generators
  55. ^^^^^^^^^^^^^^^^^^^^^^^^
  56. .. toctree::
  57. :maxdepth: 1
  58. /generator/Visual Studio 6
  59. /generator/Visual Studio 7
  60. /generator/Visual Studio 7 .NET 2003
  61. /generator/Visual Studio 8 2005
  62. /generator/Visual Studio 9 2008
  63. /generator/Visual Studio 10 2010
  64. /generator/Visual Studio 11 2012
  65. /generator/Visual Studio 12 2013
  66. /generator/Visual Studio 14 2015
  67. /generator/Visual Studio 15 2017
  68. /generator/Visual Studio 16 2019
  69. /generator/Visual Studio 17 2022
  70. Other Generators
  71. ^^^^^^^^^^^^^^^^
  72. .. toctree::
  73. :maxdepth: 1
  74. /generator/Green Hills MULTI
  75. /generator/Xcode
  76. .. _`Extra Generators`:
  77. Extra Generators
  78. ================
  79. .. deprecated:: 3.27
  80. Support for "Extra Generators" is deprecated and will be removed from
  81. a future version of CMake. IDEs may use the :manual:`cmake-file-api(7)`
  82. to view CMake-generated project build trees.
  83. Some of the `CMake Generators`_ listed in the :manual:`cmake(1)`
  84. command-line tool :option:`--help <cmake --help>` output may have
  85. variants that specify an extra generator for an auxiliary IDE tool.
  86. Such generator names have the form ``<extra-generator> - <main-generator>``.
  87. The following extra generators are known to CMake.
  88. .. toctree::
  89. :maxdepth: 1
  90. /generator/CodeBlocks
  91. /generator/CodeLite
  92. /generator/Eclipse CDT4
  93. /generator/Kate
  94. /generator/Sublime Text 2