You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
3.6 KiB

  1. .\" Hey, EMACS: -*- nroff -*-
  2. .\" First parameter, NAME, should be all caps
  3. .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
  4. .\" other parameters are allowed: see man(7), man(1)
  5. .TH CMAKE 1 "August 8, 2002"
  6. .\" Please adjust this date whenever revising the manpage.
  7. .\"
  8. .\" Some roff macros, for reference:
  9. .\" .nh disable hyphenation
  10. .\" .hy enable hyphenation
  11. .\" .ad l left justify
  12. .\" .ad b justify to both left and right margins
  13. .\" .nf disable filling
  14. .\" .fi enable filling
  15. .\" .br insert line break
  16. .\" .sp <n> insert n+1 empty lines
  17. .\" for manpage-specific macros, see man(7)
  18. .SH NAME
  19. cmake \- Cross-platform Makefile generator.
  20. .SH SYNOPSIS
  21. .B cmake
  22. .RI < path-to-source > " " [ options ]
  23. .br
  24. .B ccmake
  25. .RI < path-to-source >
  26. .br
  27. .B ctest
  28. .RI [ -R " " < regex > ]
  29. .br
  30. .B cmaketest
  31. .RI < test-src-dir > " " < test-bin-dir > " " < test-executable >
  32. .SH DESCRIPTION
  33. This manual page documents briefly the \fBcmake\fP, \fBccmake\fP,
  34. \fBctest\fP and \fBcmaketest\fP commands. It is not intended to aid
  35. authors of CMakeLists.txt files or to describe all advanced options
  36. available. For full documentation, please visit
  37. \fBhttp://www.cmake.org\fP.
  38. .PP
  39. .\" TeX users may be more comfortable with the \fB<whatever>\fP and
  40. .\" \fI<whatever>\fP escape sequences to invode bold face and italics,
  41. .\" respectively.
  42. CMake provides developers with a means of building their project on
  43. multiple platforms while writing only one build system configuration.
  44. The developer writes a set of CMakeLists.txt files that are read by
  45. CMake and used to generate a native build system for the current
  46. environment. On unix platforms, Makefiles are generated.
  47. .PP
  48. \fBcmake\fP is used to generate the makefiles for a project from its
  49. source. The first argument should specify a path to the source tree.
  50. The current directory will be used as the build tree for the project.
  51. Both in-source and out-of-source builds are supported, but
  52. out-of-source builds are preferred. CMake provides functionality for
  53. tailoring the build to user preferences through settings in the cmake
  54. cache. Options may be set interactively using the -i option (or
  55. \fBccmake\fP). Once CMake has generated the makefiles in the build
  56. tree, one may use the standard \fBmake\fP tool to build the project.
  57. .PP
  58. \fBccmake\fP provides a curses interface front-end for \fBcmake\fP.
  59. The interface allows users to interactively configure the build
  60. options stored in the cmake cache. This is the preferred interface
  61. for interactive builds. Build scripts should use \fBcmake\fP
  62. directly.
  63. .PP
  64. \fBctest\fP runs tests found in the project's build tree after it has
  65. been compiled and displays a summary of test results. Use the -R
  66. option to specify a regular expression of test names to match.
  67. \fBcmaketest\fP is provided to simplify project testing scripts. It
  68. allows a CMake project to be compiled and tested from a single command
  69. line.
  70. .SH OPTIONS
  71. .TP
  72. .B \-\-help
  73. Available for \fBcmake\fP , \fBccmake\fP and \fBcmaketest\fP.
  74. .br
  75. Show version number and summary of options.
  76. .TP
  77. .B -R regex
  78. Available for \fBctest\fP.
  79. .br
  80. Run only tests matching the given regular expression.
  81. .TP
  82. .B -i
  83. Available for \fBcmake\fP.
  84. .br
  85. Run cmake in an interactive wizard mode to configure the build.
  86. .SH SEE ALSO
  87. .BR Dart (1),
  88. .BR VTK (1).
  89. .SH MAILING LIST
  90. For help using cmake, a mailing list is provided at
  91. \fBcmake@www.cmake.org\fP. Please first read the full documentation
  92. at \fBhttp://www.cmake.org\fP before posting questions to the list.
  93. .SH AUTHOR
  94. This manual page was written by CMake authors at Kitware
  95. <kitware@kitware.com>.