Thanks for your quick response!<br><br>I'll have all this things in consideration, specially wrong dependencies and libs version.<br>I'll plan to test packages on vbox for others distros, my project isn't big or complex (just a few dependencies), and I'll guess binary libs compatibility isn't and issue between minor versions.<br>
<br>I'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't ready ill just have to wait, no problem.<br><br><div class="gmail_quote">2011/12/1 Eric Noulard <span dir="ltr"><<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>></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 <<a href="mailto:auledoom@gmail.com">auledoom@gmail.com</a>>:<br>
<div class="im">> Hello devs!<br>
><br>
> I've searh the net with no result, i have a project builds various apps and<br>
> libs, i managed to use cmake/cpack to build and create packages for win32<br>
> and debian and i have two questions.<br>
><br>
> 1 First, it's posibible to build a deb package and rpm simultaneusly from a<br>
> 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 "TGZ;RPM;DEB")<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 "rpmbuild" 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'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 "NSIS;ZIP")<br>
else()<br>
set(CPACK_GENERATOR "TGZ;RPM;DEB")<br>
endif()<br>
<div class="im"><br>
> 2. Can I include CPACK multiple times to generate various set of packages<br>
> (myproject.deb, myproject-data.deb, myprojectlibs.deb?<br>
<br>
</div>Nope you can'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'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>"Seamos Realistas y Hagamos lo Imposible"<br>