[CMake] Component group specific installation with Makefile

Doug Gregor doug.gregor at gmail.com
Thu Aug 7 08:18:59 EDT 2008


On Thu, Aug 7, 2008 at 6:24 AM, Yann Cointepas <yann at sapetnioc.org> wrote:
> Thank you for your answers. I have been able to create macros (see below) to
> replace cpack_add_component_group and cpack_add_component. These macros call
> the corresponding cpack macro and create install-${group-component} and
> install-${group} targets with appropriate dependencies.

Great! I suggest that you consider writing a patch for the CPack
module that adds this functionality to cpack_add_component and
cpack_add_component_group, so that others can benefit from this.
Eventually, you would then be able to eliminate the SOMA_ADD_COMPONENT
and SOMA_ADD_COMPONENT_GROUP macros, since CPack will already provide
the functionality you need.

Also, you probably want SOME_ADD_COMPONENT to walk the dependencies of
each component (the DEPENDS argument to cpack_add_component) and make
sure that all dependencies are also installed.

  - Doug


More information about the CMake mailing list