AutoMOC complains about missing Q_OBJECT macro's when they are hidden
This is sort-of a followup of #15419 (closed) , where automoc now complains about a file where it did not with CMake 3.8.
Here is an example.h, which uses a macro MOCFOO which expands to a Q_OBJECT-using macro definition. Because of this, it includes the moc-file. In KDE code, macro's like K_PLUGIN_FACTORY_WITH_JSON do the same thing. Because CMake's automoc doesn't see the expansion of the MOCFOO or K_PLUGIN_FACTORY_WITH_JSON macro's, it thinks there is nothing to moc, and complains:
AutoMoc: Warning: "/tmp/cmake-automoc/example.cpp"
The file includes the moc file "example.moc", but does not contain a Q_OBJECT or Q_GADGET macro.
It would be nice to be able to suppress these warnings by adding to that list: Q_OBJECT, or Q_GADGET, or MOCFOO should be ok. The earlier issue #15419 (closed) talks about adding something like that, but I can't find further references if it was actually implemented.
@kossebau : this is what ktexteditorpreviewplugin was going on about @sebholt : last one of my cmake 3.9 itty-bitty-issues, i promise :)