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    [email protected]
W  www.euphoria-it.nl


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

 

--

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

Reply via email to