[CMake] Decompressing a file with cmake

Eric Noulard eric.noulard at gmail.com
Mon Mar 8 06:29:08 EST 2010


2010/3/8 Droscy <droscy85 at yahoo.it>:
> AKHRES Nader ha scritto:
>> is it possible to uncompress a zip file with cmake?
> One solution could be writing the Find7Zip.cmake file in order to get
> the executable and use it to uncompress the downloaded file...
>
> I know that this solution is not very easy, but it is a solution :-)

I didn't looked into it but since there exists a CPack ZIP generator
CPack should be able to find for applications which are able to create zip
(which in turn may be able to un-compress zip).

I don't know if it's done in some .cmake file or embedded in the C++ code
of the CPackZIP generator. May be you can have a lookin this direction.

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list