file DE|COMPRESS options
CMake has support for creating tar files using compression. Unfortunately there is no way to have one file compressed, without the tar format.
Qt uses for mimetypes perl to compress freedesktop.org.xml
to gzip or zstd, and on Windows for extra compatibility there is a bat and a powershell script.
CMake already has all the compression formats, it would be great to have something like:
file(COMPRESS OUTPUT file.gz CONTENT "${my_var}" FORMAT gzip)
Edited by Cristian Adam