In recent CMake versions (> 3.19.2 at least), using OBJECT libraries
with Qt fails because CMake does not link AUTOMOC targets properly into
users of the OBJECT libraries. This should have been fixed in 3.20, but
apparently in our case this still is not working. Suggested workarounds
like linking Qt5::Core into the OBJECT libraries also did not yield
success.