StudioWelcome: Add the qml files to the CMake build system

Add a missing delimiter for the debug build. For the release build, we
need a .qrc file which captures the whole qml/ subtree.

Change-Id: I07fa916f6074870278c2aa90a8e4a599bf784a3d
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Alessandro Portale
2020-02-22 21:59:39 +01:00
parent d45e123b8e
commit 6e88cc33de
2 changed files with 8 additions and 1 deletions

View File

@@ -1,11 +1,12 @@
add_qtc_plugin(StudioWelcome
DEPENDS Qt5::QuickWidgets
PLUGIN_DEPENDS Core ProjectExplorer QtSupport
DEFINES STUDIO_QML_PATH="${CMAKE_CURRENT_SOURCE_DIR}/qml"
DEFINES STUDIO_QML_PATH="${CMAKE_CURRENT_SOURCE_DIR}/qml/"
SOURCES
studiowelcomeplugin.cpp studiowelcomeplugin.h
studiowelcome_global.h
studiowelcome.qrc
studiowelcome_qml.qrc
"${PROJECT_SOURCE_DIR}/src/share/3rdparty/studiofonts/studiofonts.qrc"
EXTRA_TRANSLATIONS
qml

View File

@@ -0,0 +1,6 @@
<!-- This file is the CMake equivalent of "RESOURCES = $$files(qml/*)" in studiowelcome.pro -->
<RCC>
<qresource>
<file>qml/</file>
</qresource>
</RCC>