[CMake] can I make an AUTOMOC generated file depend on something ?
Stephen Kelly
steveire at gmail.com
Mon Nov 17 16:23:34 EST 2014
Martin Koller wrote:
> What rules can I add so that the tar extraction is done BEFORE the moc
> generation ?
You can add depends in the AUTOGEN_TARGET_DEPENDS target property of
particular targets.
http://www.cmake.org/cmake/help/v3.0/prop_tgt/AUTOGEN_TARGET_DEPENDS.html
Please try that out. It will require you to set it on each target. If that's
too suboptimal, we can think about adding an additional convenience
interface.
Thanks,
Steve.
More information about the CMake
mailing list