Check the modules for something like "selfexecutablepackers".

Just add a POST_BUILD step & everythin would be fine ;-)


On 29/01/2008, Filipe Sousa <[EMAIL PROTECTED]> 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@cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to