[CMake] How to run a script on an executable target post-build

Kevin Burge kevin.burge at systemware.com
Tue Nov 10 11:55:22 EST 2009


That worked! Thanks.

Tyler Roscoe wrote:
> On Tue, Nov 10, 2009 at 08:36:10AM -0600, Kevin Burge wrote:
>   
>> I need to run a script on a C++ executable after it's linked that will 
>> modify the exe, before it's really done building.  Is there a way to 
>> hook into the "add_executable" handling to do this?
>>     
>
> Have you looked at add_custom_command()? Specificaly the POST_BUILD
> variant?
>
> tyler
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091110/b180bb33/attachment.htm>


More information about the CMake mailing list