[CMake] Post-Generate commands

Alexander Neundorf a.neundorf-work at gmx.net
Wed May 26 12:16:10 EDT 2010


On Wednesday 26 May 2010, LaViolette, Alan wrote:
> Is it possible to have cmake run a command after all files are
> generated?   I want to do some additional build environment setup.


You can use add_custom_command(TARGET your_target POST_BUILD COMMAND ...) to 
have commands executed after a target has been built.

Or do you mean at the end of the cmake run ?
What do you want to do ? Please let us know some more details, otherwise it's 
hard to help.

Alex


More information about the CMake mailing list