<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/3/29 John Bruce <span dir="ltr">&lt;<a href="mailto:jbruce@barracuda.com" target="_blank">jbruce@barracuda.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US"><div><p class="">Hello,<u></u><u></u></p><p class=""><u></u> <u></u></p><p class="">I have a project that I’m packaging both as a DEB file and a tgz file. I’ve included all necessary install() commands in my CMakeLists.txt, and have specified “DEB;TGZ” as the generators for CPack. <u></u><u></u></p>
<p class=""><u></u> <u></u></p><p class="">I understand that if I want to include generator-specific CPack commands, I’ll have to include them in a Cpack_Project_config_file, which I have done as well. However, I’m not able to include install() commands in this file for some reason.</p>
</div></div></blockquote><div><br></div><div>Install command are &quot;CMaket-time&quot; commands, i.e. they run when CMake runs.<br>Cpack_Project_config_file may only contain CPack-time command because it gets read when CPack runs.<br>
<br></div><div>If you want to include/exclude some part of your files/target in a specific installer you should<br></div><div>**always** provide install command in your CMakeLists.txt but use the COMPONENT argument<br></div>
<div>of this command.<br><br></div><div>Then use/override CPACK_COMPONENTS_ALL in your Cpack_Project_config_file so that<br></div><div>only the component you want are installed.<br><br></div><div> see doc:<br>cpack  --help-variable CPACK_COMPONENTS_ALL<br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p class="">I’d like to include an additional file in only the tgz package. Is there a way to do this (without resorting to post-cmake/cpack scripting)?<br>
</p></div></div></blockquote><div><br></div><div>So yes, COMPONENTized install should makes it possible.<br></div></div><br><br>-- <br>Erk<br>Le gouvernement représentatif n&#39;est pas la démocratie -- <a href="http://www.le-message.org" target="_blank">http://www.le-message.org</a>
</div></div>