<div dir="ltr"><br><br><div class="gmail_quote">On Fri, Oct 3, 2008 at 1:22 AM, 0xd34df00d <span dir="ltr">&lt;<a href="mailto:0xd34df00d@gmail.com">0xd34df00d@gmail.com</a>&gt;</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 &lt;<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>&gt;:<br>
<div class="Ih2E3d">&gt; 2008/10/2 0xd34df00d &lt;<a href="mailto:0xd34df00d@gmail.com">0xd34df00d@gmail.com</a>&gt;:<br>
&gt;&gt; Hi there!<br>
&gt;&gt;<br>
&gt;&gt; I have a project which consists of main application, few helper<br>
&gt;&gt; libraries and some plugins, each of them is in its own directory with<br>
&gt;&gt; own CMakeLists.txt and target. Targets are added using ADD_LIBRARY and<br>
&gt;&gt; ADD_EXECUTABLE commands.<br>
&gt;&gt; How could I instruct CPack to create separate binary packages for each<br>
&gt;&gt; directory (or such target)?<br>
&gt;<br>
&gt; You may either try to use CPack Component:<br>
&gt; <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>
&gt; but it is not supported by many CPack generator [yet].<br>
</div>Most of all I&#39;m interested in Deb generator. What&#39;s the most correct<br>
solution for it?<br>
<div class="Ih2E3d"><br>
&gt;<br>
&gt; or you&#39;ll have to create several projects,<br>
&gt; one for part you want to package separately.<br>
&gt;<br>
&gt; The real question is why do you want to have so many different<br>
&gt; 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 &quot;create multiple RPMs from single spec file&quot;. Neither RPM nor DEB generators don&#39;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>
 &nbsp;Rudoy Georg<br>
 &nbsp;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>
 &nbsp;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>