I have this runtime issue:
~/FOEDAG$ ./build/bin/foedag --qml
QQmlApplicationEngine failed to load component
qrc:/mainWindow.qml:4:1: module "Qt.labs.platform" is not installed
We need to have a compile time cmake error if a QML component is missing.