ccmake.1.rst 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. ccmake(1)
  2. *********
  3. ::
  4. ccmake - Curses Interface for CMake.
  5. ::
  6. ccmake <path-to-source>
  7. ccmake <path-to-existing-build>
  8. The "ccmake" executable is the CMake curses interface. Project
  9. configuration settings may be specified interactively through this
  10. GUI. Brief instructions are provided at the bottom of the terminal
  11. when the program is running.
  12. CMake is a cross-platform build system generator. Projects specify
  13. their build process with platform-independent CMake listfiles included
  14. in each directory of a source tree with the name CMakeLists.txt.
  15. Users build a project by using CMake to generate a build system for a
  16. native tool on their platform.
  17. * ``-C <initial-cache>``: Pre-load a script to populate the cache.
  18. When cmake is first run in an empty build tree, it creates a
  19. CMakeCache.txt file and populates it with customizable settings for
  20. the project. This option may be used to specify a file from which
  21. to load cache entries before the first pass through the project's
  22. cmake listfiles. The loaded entries take priority over the
  23. project's default values. The given file should be a CMake script
  24. containing SET commands that use the CACHE option, not a
  25. cache-format file.
  26. * ``-D <var>:<type>=<value>``: Create a cmake cache entry.
  27. When cmake is first run in an empty build tree, it creates a
  28. CMakeCache.txt file and populates it with customizable settings for
  29. the project. This option may be used to specify a setting that
  30. takes priority over the project's default value. The option may be
  31. repeated for as many cache entries as desired.
  32. * ``-U <globbing_expr>``: Remove matching entries from CMake cache.
  33. This option may be used to remove one or more variables from the
  34. CMakeCache.txt file, globbing expressions using * and ? are
  35. supported. The option may be repeated for as many cache entries as
  36. desired.
  37. Use with care, you can make your CMakeCache.txt non-working.
  38. * ``-G <generator-name>``: Specify a build system generator.
  39. CMake may support multiple native build systems on certain
  40. platforms. A generator is responsible for generating a particular
  41. build system. Possible generator names are specified in the
  42. Generators section.
  43. * ``-T <toolset-name>``: Specify toolset name if supported by generator.
  44. Some CMake generators support a toolset name to be given to the
  45. native build system to choose a compiler. This is supported only on
  46. specific generators:
  47. ::
  48. Visual Studio >= 10
  49. Xcode >= 3.0
  50. See native build system documentation for allowed toolset names.
  51. * ``-Wno-dev``: Suppress developer warnings.
  52. Suppress warnings that are meant for the author of the
  53. CMakeLists.txt files.
  54. * ``-Wdev``: Enable developer warnings.
  55. Enable warnings that are meant for the author of the CMakeLists.txt
  56. files.
  57. * ``--copyright [file]``: Print the CMake copyright and exit.
  58. If a file is specified, the copyright is written into it.
  59. * ``--help,-help,-usage,-h,-H,/?``: Print usage information and exit.
  60. Usage describes the basic command line interface and its options.
  61. * ``--help-full [file]``: Print full help and exit.
  62. Full help displays most of the documentation provided by the UNIX
  63. man page. It is provided for use on non-UNIX platforms, but is also
  64. convenient if the man page is not installed. If a file is
  65. specified, the help is written into it.
  66. * ``--help-html [file]``: Print full help in HTML format.
  67. This option is used by CMake authors to help produce web pages. If
  68. a file is specified, the help is written into it.
  69. * ``--help-man [file]``: Print full help as a UNIX man page and exit.
  70. This option is used by the cmake build to generate the UNIX man
  71. page. If a file is specified, the help is written into it.
  72. * ``--version,-version,/V [file]``: Show program name/version banner and exit.
  73. If a file is specified, the version is written into it.
  74. ::
  75. CMake Properties - Properties supported by CMake, the Cross-Platform Makefile Generator.
  76. This is the documentation for the properties supported by CMake.
  77. Properties can have different scopes. They can either be assigned to
  78. a source file, a directory, a target or globally to CMake. By
  79. modifying the values of properties the behaviour of the build system
  80. can be customized.
  81. Copyright 2000-2012 Kitware, Inc., Insight Software Consortium. All
  82. rights reserved.
  83. Redistribution and use in source and binary forms, with or without
  84. modification, are permitted provided that the following conditions are
  85. met:
  86. Redistributions of source code must retain the above copyright notice,
  87. this list of conditions and the following disclaimer.
  88. Redistributions in binary form must reproduce the above copyright
  89. notice, this list of conditions and the following disclaimer in the
  90. documentation and/or other materials provided with the distribution.
  91. Neither the names of Kitware, Inc., the Insight Software Consortium,
  92. nor the names of their contributors may be used to endorse or promote
  93. products derived from this software without specific prior written
  94. permission.
  95. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  96. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  97. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  98. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  99. HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  100. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  101. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  102. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  103. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  104. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  105. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  106. The following resources are available to get help using CMake:
  107. * ``Home Page``: http://www.cmake.org
  108. The primary starting point for learning about CMake.
  109. * ``Frequently Asked Questions``: http://www.cmake.org/Wiki/CMake_FAQ
  110. A Wiki is provided containing answers to frequently asked questions.
  111. * ``Online Documentation``: http://www.cmake.org/HTML/Documentation.html
  112. Links to available documentation may be found on this web page.
  113. * ``Mailing List``: http://www.cmake.org/HTML/MailingLists.html
  114. For help and discussion about using cmake, a mailing list is
  115. provided at [email protected]. The list is member-post-only but one
  116. may sign up on the CMake web page. Please first read the full
  117. documentation at http://www.cmake.org before posting questions to
  118. the list.