CMake 3.9 introduced bogus automoc warnings of the form:
"The file includes the moc file "foo.moc", but does not contain a Q_OBJECT, Q_GADGET or Q_NAMESPACE macro."
These are caused by use of KF5-provided macros that it doesn't recognise, and obscure the real compiler output.
CMake 3.10+ can be told extra macros to accept, which avoids the warnings.