[cmake-developers] Automoc in cmake

Brad King brad.king at kitware.com
Thu Jun 9 09:21:38 EDT 2011


On 6/9/2011 8:47 AM, Alexander Neundorf wrote:
> So, if I would create a dummy foo.automoc file from automoc, and added this to 
> the target, this would make sure that any files created as "side-effects" of 
> this custom command would already exist when any source files are compiled ?

Yes.  I cannot say off the top of my head how that would work for the
non-Makefile generators though.

> But this still means that custom commands cannot be triggered via the implicit 
> dependency scanning, right ?

Custom commands will not be drawn into a target by CMake if the only
reference to their output is implicit in source file content.

-Brad



More information about the cmake-developers mailing list