cmake-generators.7.rst 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. ^^^^^^^^^^^^^^^^
  42. .. toctree::
  43. :maxdepth: 1
  44. /generator/Ninja
  45. /generator/Ninja Multi-Config
  46. .. _`IDE Build Tool Generators`:
  47. IDE Build Tool Generators
  48. -------------------------
  49. These generators support Integrated Development Environment (IDE)
  50. project files. Since the IDEs configure their own environment
  51. one may launch CMake from any environment.
  52. .. _`Visual Studio Generators`:
  53. Visual Studio Generators
  54. ^^^^^^^^^^^^^^^^^^^^^^^^
  55. .. toctree::
  56. :maxdepth: 1
  57. /generator/Visual Studio 6
  58. /generator/Visual Studio 7
  59. /generator/Visual Studio 7 .NET 2003
  60. /generator/Visual Studio 8 2005
  61. /generator/Visual Studio 9 2008
  62. /generator/Visual Studio 10 2010
  63. /generator/Visual Studio 11 2012
  64. /generator/Visual Studio 12 2013
  65. /generator/Visual Studio 14 2015
  66. /generator/Visual Studio 15 2017
  67. /generator/Visual Studio 16 2019
  68. Other Generators
  69. ^^^^^^^^^^^^^^^^
  70. .. toctree::
  71. :maxdepth: 1
  72. /generator/Green Hills MULTI
  73. /generator/Xcode
  74. Extra Generators
  75. ================
  76. Some of the `CMake Generators`_ listed in the :manual:`cmake(1)`
  77. command-line tool ``--help`` output may have variants that specify
  78. an extra generator for an auxiliary IDE tool. Such generator
  79. names have the form ``<extra-generator> - <main-generator>``.
  80. The following extra generators are known to CMake.
  81. .. toctree::
  82. :maxdepth: 1
  83. /generator/CodeBlocks
  84. /generator/CodeLite
  85. /generator/Eclipse CDT4
  86. /generator/Kate
  87. /generator/Sublime Text 2