<br><br><div class="gmail_quote">2012/8/8 m.hergarden <span dir="ltr"><<a 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 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 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 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 href="http://www.le-message.org" target="_blank">http://www.le-message.org</a><br>