<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
I've been through this and experimented with samples kindly provided
by another user. Nothing works for debian packaging. What I think
will work is a "workaround" from another user in 2008 <a
href="http://www.cmake.org/pipermail/cmake/2008-April/020967.html"><u><font
color="#0000FF" face="Arial" size="2">http://www.cmake.org/pipermail/cmake/2008-April/020967.html</font></u></a>,
where I generate my own CPackConfig-runtime.cmake and
CPackConfig-dev.cmake files.<br>
<br>
thanks for the pointers<br>
<br>
On 8/08/2012 5:50 PM, Eric Noulard wrote:
<blockquote
cite="mid:CAPASGLopuqjFAakCaCoAsake0btkpYkft=RXezJBUO0Lnc4+Yw@mail.gmail.com"
type="cite"><br>
s.<br>
<div class="gmail_quote">2012/8/8 m.hergarden <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:m.hergarden@euphoria-it.nl" target="_blank">m.hergarden@euphoria-it.nl</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>I have found this to work for RPM files:<br>
<br>
You have to define components using: <br>
cpack_add_component(runtime DISPLAY_NAME runtime REQUIRED
INSTALL_TYPES all)<br>
</div>
</div>
</blockquote>
<div><br>
You are right defining components is the easiest way to
produce several <br>
packages (deb, rpm, zip, etc...)<br>
This is explained here:<br>
<a moz-do-not-send="true"
href="http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack">http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack</a><br>
</div>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div> <br>
For rpm I had to set this:<br>
SET(CPACK_RPM_COMPONENT_INSTALL "ON" <br>
(Grepping on component in the CPackDeb.cmake module
suggests the deb files use something similar.)<br>
</div>
</div>
</blockquote>
<div><br>
This fact is explained as well:<br>
<a moz-do-not-send="true"
href="http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack#Enabling_Component_Packaging">http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack#Enabling_Component_Packaging</a><br>
<br>
Beginning with CPack/CMake 2.8.8 you can get the list of
CPACK_xxx control variables:<br>
<br>
cpack --help-variable-list<br>
<br>
and<br>
cpack --help-variable
"CPACK_<GENNAME>_COMPONENT_INSTALL"<br>
<br>
gives you the specific documentation:<br>
<br>
CPACK_<GENNAME>_COMPONENT_INSTALL<br>
Enable/Disable component install for CPack generator
<GENNAME>.<br>
<br>
Each CPack Generator (RPM, DEB, ARCHIVE, NSIS, DMG,
etc...) has a legacy<br>
default behavior. e.g. RPM builds monolithic whereas
NSIS builds component.<br>
One can change the default behavior by setting this
variable to 0/1 or OFF/ON.<br>
</div>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div> <br>
In your INSTALL() statements you have to add 'COMPONENT
runtime' to specify the component a file belongs to.<br>
<br>
Hth,<br>
Micha
<div>
<div class="h5"><br>
<br>
On 08/08/2012 08:59 AM, Bruce wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">Hi<br>
<br>
Got my shiny new cmake build system going for my
project on windows, Ubuntu, and Mac. <br>
<br>
Despite a fair bit of research I'm still not sure how
to generate 2 separate debian packages from the same
cmake files - say myapp.deb and myapp-dev.deb.<br>
</div>
</div>
</blockquote>
</div>
</blockquote>
<div> Concerning the naming scheme of the various packages,
there are some limitations:<br>
see: <a moz-do-not-send="true"
href="http://public.kitware.com/Bug/view.php?id=12997">http://public.kitware.com/Bug/view.php?id=12997</a><br>
and related bugs.<br>
</div>
</div>
<br clear="all">
<br>
-- <br>
Erk<br>
Le gouvernement représentatif n'est pas la démocratie -- <a
moz-do-not-send="true" href="http://www.le-message.org"
target="_blank">http://www.le-message.org</a><br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the CMake FAQ at: <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
</blockquote>
</body>
</html>