This is incorrect.<div><br></div><div>CPack only delegates to another installed tool to generate ZIP files. It does not know how to write ZIP files itself. The same is true for most CPack -G generators: it orchestrates calling an external tool to generate the actual package created.</div>
<div><br></div><div><br></div><div>Mathieu, the original question was about extracting info from a .zip file, not creating a .zip file....</div><div><br></div><div><br><br><div class="gmail_quote">On Mon, Jul 6, 2009 at 11:30 AM, Mathieu Malaterre <span dir="ltr"><<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Well technically you do not need anything extra for ZIP. The only<br>
missing part IMHO is the API from within CPack (cpack is almost always<br>
guarantee to be installed on system providing cmake), see my post:<br>
<br>
<a href="http://www.cmake.org/pipermail/cmake/2009-January/026361.html" target="_blank">http://www.cmake.org/pipermail/cmake/2009-January/026361.html</a><br>
<br>
I have not been able to find out how to do that, even when trying to<br>
fool cpack with a dummy CPackConfig.cmake file...<br>
<br>
You would then be able to add a custom rule calling cpack, making it<br>
nicely portable...<br>
<br>
2cts<br>
<div><div></div><div class="h5"><br>
On Fri, Jul 3, 2009 at 8:07 PM, David Cole<<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>> wrote:<br>
> cmake -E tar<br>
> can untar .tar files and .tar.gz files... But you have to use an external<br>
> tool for .zip files.<br>
> We are considering adding libarchive support to be able to handle more zip<br>
> formats, but it has not been tackled yet.<br>
> (See <a href="http://code.google.com/p/libarchive/" target="_blank">http://code.google.com/p/libarchive/</a> for more info.)<br>
><br>
> HTH,<br>
> David<br>
><br>
> On Fri, Jul 3, 2009 at 1:44 PM, Peter <<a href="mailto:p.schregle@impuls-imaging.com">p.schregle@impuls-imaging.com</a>> wrote:<br>
>><br>
>> I can't figure out how I can unzip a set of files with CMake.<br>
>><br>
>> I have a bunch of files in a zip archive, which need to be expanded during<br>
>> the build process and I would like to know how this can be done in a<br>
>> portable way with CMake?<br>
>><br>
>> Thanks.<br>
>> Peter<br>
>><br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Please keep messages on-topic and check the CMake FAQ at:<br>
>> <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
><br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at:<br>
> <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
><br>
<br>
<br>
<br>
</div></div>--<br>
<font color="#888888">Mathieu<br>
</font></blockquote></div><br></div>