From 6e60e2b06837df3820bd541aee25e2347f1bfab4 Mon Sep 17 00:00:00 2001 From: Tomi Korpipaa Date: Tue, 15 Oct 2024 10:06:49 +0300 Subject: [PATCH] Fix B2Qt build of cockpit example Fixes: QTBUG-129352 Change-Id: I3a821ec5c707c1533079dbf3c25ee13d0beb62ec Reviewed-by: Jere Tuliniemi (cherry picked from commit 8a13776f9c5fc393ff6f4b4ddeb792065ab5d981) Reviewed-by: Qt Cherry-pick Bot --- examples/graphs/2d/cockpit/CMakeLists.txt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/examples/graphs/2d/cockpit/CMakeLists.txt b/examples/graphs/2d/cockpit/CMakeLists.txt index 6db0b7df..b3da960d 100644 --- a/examples/graphs/2d/cockpit/CMakeLists.txt +++ b/examples/graphs/2d/cockpit/CMakeLists.txt @@ -35,10 +35,11 @@ target_link_libraries(cockpit PUBLIC Qt::Gui Qt::Quick Qt::Graphs + Qt::ShaderTools ) qt6_add_qml_module(cockpit - URI CockPit + URI CockpitExample NO_RESOURCE_TARGET_PATH QML_FILES qml/cockpit/main.qml @@ -53,17 +54,17 @@ qt6_add_shaders(cockpit "cockpit_shaders" PREFIX "" FILES - "qml/cockpit/bar.frag" - "qml/cockpit/circleMarker.frag" - "qml/cockpit/pitchbar.frag" + qml/cockpit/bar.frag + qml/cockpit/circleMarker.frag + qml/cockpit/pitchbar.frag ) -qt6_add_resources(cockpit "cockpit" +qt6_add_resources(cockpit "cockpit_resources" PREFIX "" FILES - "qml/cockpit/airplane-ico.png" - "qml/cockpit/plane-fro.png" + qml/cockpit/airplane-ico.png + qml/cockpit/plane-fro.png ) install(TARGETS cockpit