Compiling with AUTOMOC fails to show moc warnings
The issue is described in detail in a Qt bug report:
https://bugreports.qt.io/browse/QTBUG-67381
This is actually two bugs - one on the cmake side (or a misunderstanding on my part) and one on the Qt side.
Building a plugin with an invalid JSON file is supposed to output a warning.
Bug 1 (CMake) - CMake does not show this warning
Bug 2 (Qt) - the resulting plugin is invalid