[CMake] Can I run a command every time a given target is created?

Matthew Woehlke matthew.woehlke at kitware.com
Wed Oct 23 16:17:16 EDT 2013


On 2013-10-23 15:41, Paul Smith wrote:
> I need to be able to run a command after a target is created, every time
> the target is created.  I need this to happen regardless of the command
> line.

Does add_custom_command(TARGET myTarget POST_BUILD ...) do what you want?

-- 
Matthew



More information about the CMake mailing list