Re: [CMake] cmake and upx

2008-01-29 Thread Steven Van Ingelgem
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 cu

[CMake] cmake and upx

2008-01-29 Thread Filipe Sousa
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}) Th