GZipping files at build time
apaku at gmx.de
Mon Feb 20 08:27:30 UTC 2012
On 19.02.12 22:36:47, Parker Coates wrote:
> Hello Build System Experts,
> Within the KDEGames project we would like to gzip compress some files
> at build-time, and I am coming to you folks for suggestions.
> Can CMake do this for us?
Yes it can, using a custom command. KDevPlatform provides a macro that
uses this to zip up application-template directories:
That macro basically zips up a directory. The downside of it currently
is that it requires manual cmake-re-run when the directory contents
change. This could be fixed by replacing the foreach-loop and the
file(GLOB) with manually listing the files.
The script currently depends on zip or tar being in PATH, but this
hasn't been a problem for us so far.
More information about the Kde-buildsystem