Details
-
User Story
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
Description
.qmlproject files are used in Qt Design Studio to define the user interface of a project. We should consider adding CMake API to process this file, and embed the files it specifies into an application.
CMake API
qt_add_qml_module() needs to handle .qmlproject files. Here, files in the .qmlproject with .qml, .js, .mjs suffixes will be handled as QML source files. Other files will be handled as binary resource files.
qt_add_qml_module(someTarget
PLUGIN_TARGET someTarget
QMLPROJECT myproject.qmlproject
...
)qt_target_qmlproject(someTarget
myproject2.qmlproject
)
Behavior
CMake should warn about using wildcards in .qmlproject.
Implementation
.qmlproject file format is not complicated. Anyhow, it is based on QML, so an implementation would probably need through a command line tool in Qt (qmlprojectc?)