Fix B2Qt build of cockpit example

Fixes: QTBUG-129352
Change-Id: I3a821ec5c707c1533079dbf3c25ee13d0beb62ec
Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io>
(cherry picked from commit 8a13776f9c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Tomi Korpipaa 2024-10-15 10:06:49 +03:00 committed by Qt Cherry-pick Bot
parent 9f36bffbff
commit 6e60e2b068
1 changed files with 8 additions and 7 deletions

View File

@ -35,10 +35,11 @@ target_link_libraries(cockpit PUBLIC
Qt::Gui Qt::Gui
Qt::Quick Qt::Quick
Qt::Graphs Qt::Graphs
Qt::ShaderTools
) )
qt6_add_qml_module(cockpit qt6_add_qml_module(cockpit
URI CockPit URI CockpitExample
NO_RESOURCE_TARGET_PATH NO_RESOURCE_TARGET_PATH
QML_FILES QML_FILES
qml/cockpit/main.qml qml/cockpit/main.qml
@ -53,17 +54,17 @@ qt6_add_shaders(cockpit "cockpit_shaders"
PREFIX PREFIX
"" ""
FILES FILES
"qml/cockpit/bar.frag" qml/cockpit/bar.frag
"qml/cockpit/circleMarker.frag" qml/cockpit/circleMarker.frag
"qml/cockpit/pitchbar.frag" qml/cockpit/pitchbar.frag
) )
qt6_add_resources(cockpit "cockpit" qt6_add_resources(cockpit "cockpit_resources"
PREFIX PREFIX
"" ""
FILES FILES
"qml/cockpit/airplane-ico.png" qml/cockpit/airplane-ico.png
"qml/cockpit/plane-fro.png" qml/cockpit/plane-fro.png
) )
install(TARGETS cockpit install(TARGETS cockpit