It could be related to or duplicate of
The resource files are not visible when the QtQuickCompiler is used. For example:
It works as expected without QtQuickCompiler:
It seems this is expected way  of using QtQuickCompiler, but the QtCreator doesn't show the files then. I am trying to use this approach in my project . Please point me to right documentation if my cmake configuration is incorrect.