1cpack(1) General Commands Manual cpack(1)
2
3
4
6 cpack - Packaging driver provided by CMake.
7
8
10 cpack -G <generator> [options]
11
12
14 The "cpack" executable is the CMake packaging program. CMake-generated
15 build trees created for projects that use the INSTALL_* commands have
16 packaging support. This program will generate the package.
17
18
19 CMake is a cross-platform build system generator. Projects specify
20 their build process with platform-independent CMake listfiles included
21 in each directory of a source tree with the name CMakeLists.txt. Users
22 build a project by using CMake to generate a build system for a native
23 tool on their platform.
24
25
27 -G <generator>
28 Use the specified generator to generate package.
29
30 CPack may support multiple native packaging systems on certain
31 platforms. A generator is responsible for generating input files
32 for particular system and invoking that systems. Possible gener‐
33 ator names are specified in the Generators section.
34
35
36 -C <Configuration>
37 Specify the project configuration
38
39 This option specifies the configuration that the project was
40 build with, for example 'Debug', 'Release'.
41
42
43 -D <var>=<value>
44 Set a CPack variable.
45
46 Set a variable that can be used by the generator.
47
48
49 --config <config file>
50 Specify the config file.
51
52 Specify the config file to use to create the package. By default
53 CPackConfig.cmake in the current directory will be used.
54
55
57 DEB Debian packages
58
59
60 NSIS Null Soft Installer
61
62
63 RPM RPM packages
64
65
66 STGZ Self extracting Tar GZip compression
67
68
69 TBZ2 Tar BZip2 compression
70
71
72 TGZ Tar GZip compression
73
74
75 TZ Tar Compress compression
76
77
78 ZIP ZIP file format
79
80
82 CMake Properties - Properties supported by CMake, the Cross-Platform Makefile Generator.
83
84
85 This is the documentation for the properties supported by CMake. Prop‐
86 erties can have different scopes. They can either be assigned to a
87 source file, a directory, a target or globally to CMake. By modifying
88 the values of properties the behaviour of the build system can be cus‐
89 tomized.
90
91
93 CMake Compatibility Listfile Commands - Obsolete commands supported by CMake for compatibility.
94
95
96 This is the documentation for now obsolete listfile commands from pre‐
97 vious CMake versions, which are still supported for compatibility rea‐
98 sons. You should instead use the newer, faster and shinier new com‐
99 mands. ;-)
100
101
104 Copyright 2000-2009 Kitware, Inc., Insight Software Consortium. All
105 rights reserved.
106
107
108 Redistribution and use in source and binary forms, with or without mod‐
109 ification, are permitted provided that the following conditions are
110 met:
111
112
113 Redistributions of source code must retain the above copyright notice,
114 this list of conditions and the following disclaimer.
115
116
117 Redistributions in binary form must reproduce the above copyright
118 notice, this list of conditions and the following disclaimer in the
119 documentation and/or other materials provided with the distribution.
120
121
122 Neither the names of Kitware, Inc., the Insight Software Consortium,
123 nor the names of their contributors may be used to endorse or promote
124 products derived from this software without specific prior written per‐
125 mission.
126
127
128 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
129 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
130 TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTIC‐
131 ULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
132 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
133 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
134 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
135 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
136 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
137 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
138 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
139
140
142 cmake(1), ccmake(1)
143
144
145 The following resources are available to get help using CMake:
146
147
148 Home Page
149 http://www.cmake.org
150
151 The primary starting point for learning about CMake.
152
153
154 Frequently Asked Questions
155 http://www.cmake.org/Wiki/CMake_FAQ
156
157 A Wiki is provided containing answers to frequently asked ques‐
158 tions.
159
160
161 Online Documentation
162 http://www.cmake.org/HTML/Documentation.html
163
164 Links to available documentation may be found on this web page.
165
166
167 Mailing List
168 http://www.cmake.org/HTML/MailingLists.html
169
170 For help and discussion about using cmake, a mailing list is
171 provided at cmake@cmake.org. The list is member-post-only but
172 one may sign up on the CMake web page. Please first read the
173 full documentation at http://www.cmake.org before posting ques‐
174 tions to the list.
175
176
177 Summary of helpful links:
178
179
180 Home: http://www.cmake.org
181 Docs: http://www.cmake.org/HTML/Documentation.html
182 Mail: http://www.cmake.org/HTML/MailingLists.html
183 FAQ: http://www.cmake.org/Wiki/CMake_FAQ
184
185
187 This manual page was generated by the "--help-man" option.
188
189
190
191
192cpack 2.8.4 March 31, 2011 cpack(1)