[CMake] (CPack) Separate packaging of subdirectories

Timenkov Yuri ytimenkov at gmail.com
Mon Oct 6 03:42:00 EDT 2008


On Fri, Oct 3, 2008 at 1:22 AM, 0xd34df00d <0xd34df00d at gmail.com> wrote:

> 2008/10/2 Eric Noulard <eric.noulard at gmail.com>:
> > 2008/10/2 0xd34df00d <0xd34df00d at gmail.com>:
> >> Hi there!
> >>
> >> I have a project which consists of main application, few helper
> >> libraries and some plugins, each of them is in its own directory with
> >> own CMakeLists.txt and target. Targets are added using ADD_LIBRARY and
> >> ADD_EXECUTABLE commands.
> >> How could I instruct CPack to create separate binary packages for each
> >> directory (or such target)?
> >
> > You may either try to use CPack Component:
> > http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack
> > but it is not supported by many CPack generator [yet].
> Most of all I'm interested in Deb generator. What's the most correct
> solution for it?
>
> >
> > or you'll have to create several projects,
> > one for part you want to package separately.
> >
> > The real question is why do you want to have so many different
> > binary packages?
> One is for main app, another two for some libraries shared among main
> app and some other projects, others (virtually unlimited number) - for
> plugins for my application.

Theoretically this should be multi-component setup. For RPM this was
discussed as "create multiple RPMs from single spec file". Neither RPM nor
DEB generators don't support this feature yet. Anyways, you can create
several cpack configuration files and put necessary content in each one. (as
Eric mentioned).

>
>
>
> --
>  Rudoy Georg
>  LeechCraft — http://sourceforge.net/projects/leechcraft and
> http://deviant-soft.ws
>  Spicy — http://deviant-soft.ws
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081006/d7f1d189/attachment.htm>


More information about the CMake mailing list