cmake-generators.7.rst 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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 ``--help``
  16. output lists available generators on the current platform. Use its ``-G``
  17. option to specify the generator for a new build tree.
  18. The :manual:`cmake-gui(1)` offers interactive selection of a generator
  19. 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. Some of the `CMake Generators`_ listed in the :manual:`cmake(1)`
  80. command-line tool ``--help`` output may have variants that specify
  81. an extra generator for an auxiliary IDE tool. Such generator
  82. names have the form ``<extra-generator> - <main-generator>``.
  83. The following extra generators are known to CMake.
  84. .. toctree::
  85. :maxdepth: 1
  86. /generator/CodeBlocks
  87. /generator/CodeLite
  88. /generator/Eclipse CDT4
  89. /generator/Kate
  90. /generator/Sublime Text 2