Best practice for adding qml to resources (on mac (MACOSX_BUNDLE TRUE)
-
Hi
The question
-
What is the most recommended way to add a
add_subdirectoryQml files to the resource? -
I understand, there might be many ways to accomplish this,
My primary goal is
- to maintain
mylibsub_folder autonomous as possible. - Link
mylibas elegant as possible at the parentCMakeLists.txt.
Detailed description of the problem
https://github.com/shemeshg/qt-qml-cmake-api
The following very simple example will compile and run when (MACOSX_BUNDLE FALSE)
However it will compile and not run with (MACOSX_BUNDLE TRUE).
QQmlApplicationEngine failed to load component qrc:/hello/main.qml:13:5: FramedImage is not a typeThis is because it is not in any "qrc:/".
-