Since CMake knows about large resources (especially in the light of the
QTBUG-104320 now being fixed), it should also generate the resource initialization for them automatically (for QML Modules especially) along with the other automatically generated ones (e.g. as found in file names like qrc_myModule_raw_qml_0.cpp).
Otherwise you also have to Q_INIT_RESOURCE(qml) somewhere, most probably in the plugin constructor - which can lead to the ONLY reason to not allow CMake to generate your plugin class for you. At the moment this isn't happening so you would have to do this yourself which goes against the idea that CMake is doing most of the work for you.