[CMake] Generating multiple debian packages

m.hergarden m.hergarden at euphoria-it.nl
Wed Aug 8 03:23:22 EDT 2012


I have found this to work for RPM files:

You have to define components using:
cpack_add_component(runtime DISPLAY_NAME runtime REQUIRED INSTALL_TYPES all)

For rpm I had to set this:
SET(CPACK_RPM_COMPONENT_INSTALL     "ON"
(Grepping on component in the CPackDeb.cmake module suggests the deb 
files use something similar.)

In your INSTALL() statements you have to add 'COMPONENT runtime' to 
specify the component a file belongs to.

Hth,
Micha

On 08/08/2012 08:59 AM, Bruce wrote:
> Hi
>
> Got my shiny new cmake build system going for my project on windows, 
> Ubuntu, and Mac.
>
> 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.
>
> I think what I want is somehow for it to write out another file in the 
> same manner it writes out both CPackConfig.cmake and 
> CPackSourceConfig.cmake. A CPackDevConfig.cmake?
>
> Appreciate it if someone can point me in the right direction.
>
> Ta
> -- 
> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake


-- 

Met vriendelijke groet,

Micha Hergarden

image001

Lieve Vrouweplein 9-10
5038 TS Tilburg

*CONTACT*

*T*+31 (0) 13 460 92 80
*F*+31 (0) 13 460 92 81
*E*m.hergarden at euphoria-it.nl <mailto:m.hergarden at euphoria-it.nl>
*W*www.euphoria-it.nl <http://www.euphoria-it.nl/>

Helpdesk: 013 - 460 92 86
Storingdienst: 06-47942098

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120808/251d0fb4/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 3239 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120808/251d0fb4/attachment-0001.png>


More information about the CMake mailing list