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

Tyler Roscoe tyler at cryptio.net
Tue Nov 10 09:57:12 EST 2009


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


More information about the CMake mailing list