[CMake] cmake and upx
Steven Van Ingelgem
steven at vaningelgem.be
Tue Jan 29 07:55:57 EST 2008
Check the modules for something like "selfexecutablepackers".
Just add a POST_BUILD step & everythin would be fine ;-)
On 29/01/2008, Filipe Sousa <natros at gmail.com> wrote:
> Hi!
>
> I'm trying to use upx to compress the final executable but I have a
> few problems.
> What I did was adding a custom command:
>
> add_executable(gal WIN32 ${sources})
> get_property(galpath TARGET gal PROPERTY LOCATION)
> add_custom_command(
> TARGET gal POST_BUILD
> COMMAND upx ${galpath})
>
> The problem happens when I run make install or make package that
> relinks the executable. I can disable relinking by changing
> CMAKE_SKIP_RPATH but i'm not sure if this is the best option.
>
> I could change CMAKE_STRIP to point to upx or is there a better
> solution (install(SCRIPT))?
> --
> Filipe Sousa
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
More information about the CMake
mailing list