Thanks for your quick response!<br><br>I&#39;ll have all this things in consideration, specially wrong dependencies and libs version.<br>I&#39;ll plan to test packages on vbox for others distros, my project isn&#39;t big or complex (just a few dependencies), and I&#39;ll guess binary libs compatibility isn&#39;t and issue between minor versions.<br>
<br>I&#39;m using components and works ok with nsis as single package, but with debian merge all components in one package, i read the links you mention about Component Installation, the official documentation say CMAKE support package per component creation everything excepts DEB, but <a href="http://public.kitware.com/Bug/view.php?id=11655">http://public.kitware.com/Bug/view.php?id=11655</a> says otherwise, i have the last version installed.<br>
<br>But again thanks a lot. If isn&#39;t ready ill just have to wait, no problem.<br><br><div class="gmail_quote">2011/12/1 Eric Noulard <span dir="ltr">&lt;<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">2011/12/1 David Cristian &lt;<a href="mailto:auledoom@gmail.com">auledoom@gmail.com</a>&gt;:<br>
<div class="im">&gt; Hello devs!<br>
&gt;<br>
&gt; I&#39;ve searh the net with no result, i have a project builds various apps and<br>
&gt; libs, i managed to use cmake/cpack to build and create packages for win32<br>
&gt; and debian and i have two questions.<br>
&gt;<br>
&gt; 1 First, it&#39;s posibible to build a deb package and rpm simultaneusly from a<br>
&gt; CMAKELists.txt? Can I set more than one generator ?<br>
<br>
</div>Yes it is, just set CPACK_GENERATOR<br>
with the list of generator you want:<br>
<br>
SET(CPACK_GENERATOR &quot;TGZ;RPM;DEB&quot;)<br>
<br>
would create TGZ, RPM and DEB.<br>
Note however that:<br>
  - some generator suppose you have some tools installed<br>
    which not be available on the host platform.<br>
    e.g. CPackRPM requires &quot;rpmbuild&quot; command<br>
    which may not be installed on a debian-based distro.<br>
<br>
  - building an RPM on debian and installing it on<br>
    Fedora may not work (wrong dependencies or library version etc...).<br>
    It&#39;s usually safe to build the package<br>
    on the same kind of host you will be installing it.<br>
<br>
  - you may have to set the list of Generator depending<br>
    on the Platform (i.e. RPM Generator is not available on Windows)<br>
    something like:<br>
    if(WIN32)<br>
        set(CPACK_GENERATOR &quot;NSIS;ZIP&quot;)<br>
    else()<br>
        set(CPACK_GENERATOR &quot;TGZ;RPM;DEB&quot;)<br>
    endif()<br>
<div class="im"><br>
&gt; 2. Can I include CPACK multiple times to generate various set of packages<br>
&gt; (myproject.deb, myproject-data.deb, myprojectlibs.deb?<br>
<br>
</div>Nope you can&#39;t currently do that:<br>
<a href="http://public.kitware.com/Bug/view.php?id=10751" target="_blank">http://public.kitware.com/Bug/view.php?id=10751</a><br>
<br>
Currently you may build several package in the same build if you<br>
use COMPONENT installation:<br>
<a href="http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack#Principles_of_CPack_Component_Packaging" target="_blank">http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack#Principles_of_CPack_Component_Packaging</a><br>

<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Erk<br>
Membre de l&#39;April - « promouvoir et défendre le logiciel libre » -<br>
<a href="http://www.april.org" target="_blank">http://www.april.org</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>&quot;Seamos Realistas y Hagamos lo Imposible&quot;<br>