AutoGen: Add test to check for correct AutoMoc dependencies

When using Qt 5.15.0 or above together with Ninja, check that touching
a source file of a dependency does not needlessly re-run AUTOMOC for
the dependee target.
6 files changed