1 .\" Man page generated from reStructuredText.
3 .TH "CPACK" "1" "October 14, 2015" "3.3.2" "CMake"
5 cpack \- CPack Command-Line Reference
7 .nr rst2man-indent-level 0
11 level \\n[rst2man-indent-level]
12 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
19 .\" .rstReportMargin pre:
21 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
22 . nr rst2man-indent-level +1
23 .\" .rstReportMargin post:
27 .\" indent \\n[an-margin]
28 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .nr rst2man-indent-level -1
30 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
31 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
39 cpack \-G <generator> [<options>]
46 The "cpack" executable is the CMake packaging program.
47 CMake\-generated build trees created for projects that use the
48 INSTALL_* commands have packaging support. This program will generate
51 CMake is a cross\-platform build system generator. Projects specify
52 their build process with platform\-independent CMake listfiles included
53 in each directory of a source tree with the name CMakeLists.txt.
54 Users build a project by using CMake to generate a build system for a
55 native tool on their platform.
59 .B \fB\-G <generator>\fP
60 Use the specified generator to generate package.
62 CPack may support multiple native packaging systems on certain
63 platforms. A generator is responsible for generating input files
64 for particular system and invoking that systems. Possible generator
65 names are specified in the Generators section.
67 .B \fB\-C <Configuration>\fP
68 Specify the project configuration
70 This option specifies the configuration that the project was build
71 with, for example \(aqDebug\(aq, \(aqRelease\(aq.
73 .B \fB\-D <var>=<value>\fP
76 Set a variable that can be used by the generator.
78 .B \fB\-\-config <config file>\fP
79 Specify the config file.
81 Specify the config file to use to create the package. By default
82 CPackConfig.cmake in the current directory will be used.
84 .B \fB\-\-verbose,\-V\fP
87 Run cpack with verbose output.
90 enable debug output (for CPack developers)
92 Run cpack with debug output (for CPack developers).
94 .B \fB\-P <package name>\fP
95 override/define CPACK_PACKAGE_NAME
97 If the package name is not specified on cpack commmand line
98 thenCPack.cmake defines it as CMAKE_PROJECT_NAME
100 .B \fB\-R <package version>\fP
101 override/define CPACK_PACKAGE_VERSION
103 If version is not specified on cpack command line thenCPack.cmake
104 defines it from CPACK_PACKAGE_VERSION_[MAJOR|MINOR|PATCH]look into
105 CPack.cmake for detail
107 .B \fB\-B <package directory>\fP
108 override/define CPACK_PACKAGE_DIRECTORY
110 The directory where CPack will be doing its packaging work.The
111 resulting package will be found there. Inside this directoryCPack
112 creates \(aq_CPack_Packages\(aq sub\-directory which is theCPack temporary
115 .B \fB\-\-vendor <vendor name>\fP
116 override/define CPACK_PACKAGE_VENDOR
118 If vendor is not specified on cpack command line (or inside
119 CMakeLists.txt) thenCPack.cmake defines it with a default value
123 .B \fB\-\-help,\-help,\-usage,\-h,\-H,/?\fP
124 Print usage information and exit.
126 Usage describes the basic command line interface and its options.
128 .B \fB\-\-version,\-version,/V [<f>]\fP
129 Show program name/version banner and exit.
131 If a file is specified, the version is written into it.
132 The help is printed to a named <f>ile if given.
134 .B \fB\-\-help\-full [<f>]\fP
135 Print all help manuals and exit.
137 All manuals are printed in a human\-readable text format.
138 The help is printed to a named <f>ile if given.
140 .B \fB\-\-help\-manual <man> [<f>]\fP
141 Print one help manual and exit.
143 The specified manual is printed in a human\-readable text format.
144 The help is printed to a named <f>ile if given.
146 .B \fB\-\-help\-manual\-list [<f>]\fP
147 List help manuals available and exit.
149 The list contains all manuals for which help may be obtained by
150 using the \fB\-\-help\-manual\fP option followed by a manual name.
151 The help is printed to a named <f>ile if given.
153 .B \fB\-\-help\-command <cmd> [<f>]\fP
154 Print help for one command and exit.
156 The \fBcmake\-commands(7)\fP manual entry for \fB<cmd>\fP is
157 printed in a human\-readable text format.
158 The help is printed to a named <f>ile if given.
160 .B \fB\-\-help\-command\-list [<f>]\fP
161 List commands with help available and exit.
163 The list contains all commands for which help may be obtained by
164 using the \fB\-\-help\-command\fP option followed by a command name.
165 The help is printed to a named <f>ile if given.
167 .B \fB\-\-help\-commands [<f>]\fP
168 Print cmake\-commands manual and exit.
170 The \fBcmake\-commands(7)\fP manual is printed in a
171 human\-readable text format.
172 The help is printed to a named <f>ile if given.
174 .B \fB\-\-help\-module <mod> [<f>]\fP
175 Print help for one module and exit.
177 The \fBcmake\-modules(7)\fP manual entry for \fB<mod>\fP is printed
178 in a human\-readable text format.
179 The help is printed to a named <f>ile if given.
181 .B \fB\-\-help\-module\-list [<f>]\fP
182 List modules with help available and exit.
184 The list contains all modules for which help may be obtained by
185 using the \fB\-\-help\-module\fP option followed by a module name.
186 The help is printed to a named <f>ile if given.
188 .B \fB\-\-help\-modules [<f>]\fP
189 Print cmake\-modules manual and exit.
191 The \fBcmake\-modules(7)\fP manual is printed in a human\-readable
193 The help is printed to a named <f>ile if given.
195 .B \fB\-\-help\-policy <cmp> [<f>]\fP
196 Print help for one policy and exit.
198 The \fBcmake\-policies(7)\fP manual entry for \fB<cmp>\fP is
199 printed in a human\-readable text format.
200 The help is printed to a named <f>ile if given.
202 .B \fB\-\-help\-policy\-list [<f>]\fP
203 List policies with help available and exit.
205 The list contains all policies for which help may be obtained by
206 using the \fB\-\-help\-policy\fP option followed by a policy name.
207 The help is printed to a named <f>ile if given.
209 .B \fB\-\-help\-policies [<f>]\fP
210 Print cmake\-policies manual and exit.
212 The \fBcmake\-policies(7)\fP manual is printed in a
213 human\-readable text format.
214 The help is printed to a named <f>ile if given.
216 .B \fB\-\-help\-property <prop> [<f>]\fP
217 Print help for one property and exit.
219 The \fBcmake\-properties(7)\fP manual entries for \fB<prop>\fP are
220 printed in a human\-readable text format.
221 The help is printed to a named <f>ile if given.
223 .B \fB\-\-help\-property\-list [<f>]\fP
224 List properties with help available and exit.
226 The list contains all properties for which help may be obtained by
227 using the \fB\-\-help\-property\fP option followed by a property name.
228 The help is printed to a named <f>ile if given.
230 .B \fB\-\-help\-properties [<f>]\fP
231 Print cmake\-properties manual and exit.
233 The \fBcmake\-properties(7)\fP manual is printed in a
234 human\-readable text format.
235 The help is printed to a named <f>ile if given.
237 .B \fB\-\-help\-variable <var> [<f>]\fP
238 Print help for one variable and exit.
240 The \fBcmake\-variables(7)\fP manual entry for \fB<var>\fP is
241 printed in a human\-readable text format.
242 The help is printed to a named <f>ile if given.
244 .B \fB\-\-help\-variable\-list [<f>]\fP
245 List variables with help available and exit.
247 The list contains all variables for which help may be obtained by
248 using the \fB\-\-help\-variable\fP option followed by a variable name.
249 The help is printed to a named <f>ile if given.
251 .B \fB\-\-help\-variables [<f>]\fP
252 Print cmake\-variables manual and exit.
254 The \fBcmake\-variables(7)\fP manual is printed in a
255 human\-readable text format.
256 The help is printed to a named <f>ile if given.
260 The following resources are available to get help using CMake:
264 \fI\%http://www.cmake.org\fP
266 The primary starting point for learning about CMake.
268 .B Frequently Asked Questions
269 \fI\%http://www.cmake.org/Wiki/CMake_FAQ\fP
271 A Wiki is provided containing answers to frequently asked questions.
273 .B Online Documentation
274 \fI\%http://www.cmake.org/documentation\fP
276 Links to available documentation may be found on this web page.
279 \fI\%http://www.cmake.org/mailing\-lists\fP
281 For help and discussion about using cmake, a mailing list is
282 provided at \fI\%cmake@cmake.org\fP\&. The list is member\-post\-only but one
283 may sign up on the CMake web page. Please first read the full
284 documentation at \fI\%http://www.cmake.org\fP before posting questions to
288 2000-2015 Kitware, Inc.
289 .\" Generated by docutils manpage writer.