<div dir="ltr">Hi Tonka,<div><br></div><div>You should read the doc here:</div><div><a href="https://cmake.org/cmake/help/v3.5/module/CPackComponent.html">https://cmake.org/cmake/help/v3.5/module/CPackComponent.html</a><br></div><div><br></div><div>for the ZIP generator you should</div><div><br></div><div>set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)</div><div>this is necessary because archive generator are "MONOLITHIC" by default.</div><div><br></div><div>set(CPACK_COMPONENTS_GROUPING IGNORE)</div><div>with this grouping you get on package per component</div><div>(the default is to have one package per component **group**)</div><div><br></div><div>This should produce one zip file per component.</div><div>Other grouping variant are possible, read the previous doc.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-25 13:45 GMT+02:00 tonka tonka <span dir="ltr"><<a href="mailto:tonka3100@gmail.com" target="_blank">tonka3100@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hey,</p>
<p dir="ltr">I want to create a zip file with only one component in it. Installers like nsis respect the CPACK_COMPONENTS_ALL settings, but the zip generator ignores it.</p>
<p dir="ltr">Can I do that?</p>
<p dir="ltr">Alternatively I would like to split every component into a single zip file, I know that it is possible but I forgot how to do that.</p>
<p dir="ltr">Greetings<span class="HOEnZb"><font color="#888888"><br>
Tonka</font></span></p>
<br>--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/cmake</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Eric<br></div></div></div></div></div>
</div>