<div dir="ltr"><br><br><div class="gmail_quote">On Fri, Oct 3, 2008 at 1:22 AM, 0xd34df00d <span dir="ltr"><<a href="mailto:0xd34df00d@gmail.com">0xd34df00d@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2008/10/2 Eric Noulard <<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>>:<br>
<div class="Ih2E3d">> 2008/10/2 0xd34df00d <<a href="mailto:0xd34df00d@gmail.com">0xd34df00d@gmail.com</a>>:<br>
>> Hi there!<br>
>><br>
>> I have a project which consists of main application, few helper<br>
>> libraries and some plugins, each of them is in its own directory with<br>
>> own CMakeLists.txt and target. Targets are added using ADD_LIBRARY and<br>
>> ADD_EXECUTABLE commands.<br>
>> How could I instruct CPack to create separate binary packages for each<br>
>> directory (or such target)?<br>
><br>
> You may either try to use CPack Component:<br>
> <a href="http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack" target="_blank">http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack</a><br>
> but it is not supported by many CPack generator [yet].<br>
</div>Most of all I'm interested in Deb generator. What's the most correct<br>
solution for it?<br>
<div class="Ih2E3d"><br>
><br>
> or you'll have to create several projects,<br>
> one for part you want to package separately.<br>
><br>
> The real question is why do you want to have so many different<br>
> binary packages?<br>
</div>One is for main app, another two for some libraries shared among main<br>
app and some other projects, others (virtually unlimited number) - for<br>
plugins for my application.</blockquote><div>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).<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<div class="Ih2E3d"><br>
<br>
--<br>
Rudoy Georg<br>
LeechCraft — <a href="http://sourceforge.net/projects/leechcraft" target="_blank">http://sourceforge.net/projects/leechcraft</a> and<br>
<a href="http://deviant-soft.ws" target="_blank">http://deviant-soft.ws</a><br>
Spicy — <a href="http://deviant-soft.ws" target="_blank">http://deviant-soft.ws</a><br>
_______________________________________________<br>
</div><div><div></div><div class="Wj3C7c">CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a></div></div></blockquote></div><br></div>