Hi everyone,<br><br>In case someone is interested in linux package generation within cmake,<br>&nbsp;I&#39;ve started to improve the existing scripts<br>(<a href="http://www.cmake.org/Wiki/CMakeUserUseRPMTools">http://www.cmake.org/Wiki/CMakeUserUseRPMTools
</a><br>&nbsp; and <a href="http://www.cmake.org/Wiki/CMakeUserUseDebian">http://www.cmake.org/Wiki/CMakeUserUseDebian</a>)<br>&nbsp;to make both debian and rpm packaging easier.<br><br>Here is links to these modules with a concrete example:
<br><br><a href="https://gforge.inria.fr/plugins/scmsvn/viewcvs.php/CMake/DpkgDeb.cmake?root=cycabtk&amp;view=markup">https://gforge.inria.fr/plugins/scmsvn/viewcvs.php/CMake/DpkgDeb.cmake?root=cycabtk&amp;view=markup</a>
<br><a href="https://gforge.inria.fr/plugins/scmsvn/viewcvs.php/CMake/Rpmbuild.cmake?root=cycabtk&amp;view=markup">https://gforge.inria.fr/plugins/scmsvn/viewcvs.php/CMake/Rpmbuild.cmake?root=cycabtk&amp;view=markup</a><br>
<a href="https://gforge.inria.fr/plugins/scmsvn/viewcvs.php/Hugr/CMakeLists.txt?root=cycabtk&amp;view=markup">https://gforge.inria.fr/plugins/scmsvn/viewcvs.php/Hugr/CMakeLists.txt?root=cycabtk&amp;view=markup</a><br><br>
The differences with the original scripts are that:<br>- you can customize the entire control or spec file directly<br>&nbsp;&nbsp;&nbsp; from your cmake file (yet to finish for rpm)<br>- it doesn&#39;t need cpack anymore (I don&#39;t know if it&#39;s a good thing or not)
<br>- the two modules have some common description variables<br>&nbsp;&nbsp;&nbsp; (so it&#39;s easy to describe both rpm and deb packages)<br>- for the deb generation : use dpkg-deb. (building the archive directly with ar seems<br>&nbsp; &nbsp; to cause some weird problem, with gdebi or dpkg-scanpackages for example).
<br>&nbsp; &nbsp; it doesn&#39;t rely on Md5Sum module anymore<br>- you can generate a package for each subproject (ie folders with a CMakeLists<br>&nbsp;&nbsp; and a PROJECT() macro) of your cmake project.<br>- can&#39;t generate the source package anymore :/&nbsp; (yet)
<br>&nbsp;&nbsp; this was made using cpack, but It seems that cpack don&#39;t let you choose what <br>&nbsp;&nbsp; do you want to put in your source package... so I&#39;m trying to do it without cpack <br>&nbsp;&nbsp; (btw, there is very really few documentation on cpack ^^)
<br><br>There are still a few part that needs to be finished, but I think the major improvement <br>will be to autodetect the dependencies (like dh_makeshlibs for deb package building).<br><br>So I think that&#39;s it. Do you have any thoughts on all this? 
<br>CPack seems to have some cool feature like stripping binaries, <br>so do you think it will be a good idea to *really* integrate these modules within cpack?<br><br>Regards,<br>--<br>Mehdi <br><br><br>