On Fri, Oct 3, 2008 at 1:22 AM, 0xd34df00d <[EMAIL PROTECTED]> wrote:

> 2008/10/2 Eric Noulard <[EMAIL PROTECTED]>:
> > 2008/10/2 0xd34df00d <[EMAIL PROTECTED]>:
> >> 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@cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to