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 _http://www.cmake.org/pipermail/cmake/2008-April/020967.html_, where I generate my own CPackConfig-runtime.cmake and CPackConfig-dev.cmake files.

thanks for the pointers

On 8/08/2012 5:50 PM, Eric Noulard wrote:

s.
2012/8/8 m.hergarden <[email protected] <mailto:[email protected]>>

    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)


You are right defining components is the easiest way to produce several
packages (deb, rpm, zip, etc...)
This is explained here:
http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack


    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.)


This fact is explained as well:
http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack#Enabling_Component_Packaging

Beginning with CPack/CMake 2.8.8 you can get the list of CPACK_xxx control variables:

cpack --help-variable-list

and
cpack --help-variable "CPACK_<GENNAME>_COMPONENT_INSTALL"

gives you the specific documentation:

  CPACK_<GENNAME>_COMPONENT_INSTALL
       Enable/Disable component install for CPack generator <GENNAME>.

Each CPack Generator (RPM, DEB, ARCHIVE, NSIS, DMG, etc...) has a legacy default behavior. e.g. RPM builds monolithic whereas NSIS builds component. One can change the default behavior by setting this variable to 0/1 or OFF/ON.


    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.

Concerning the naming scheme of the various packages, there are some limitations:
see: http://public.kitware.com/Bug/view.php?id=12997
and related bugs.


--
Erk
Le gouvernement représentatif n'est pas la démocratie -- http://www.le-message.org


--

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
--

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