summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@insta.fi>2021-05-18 12:00:10 +0300
committerJuha Vuolle <juha.vuolle@insta.fi>2021-05-18 13:19:25 +0300
commit9c159b6efad3fe12203fcebd693b63caec4caf1e (patch)
tree42346655c5388c3041caeee2fee9e93479ade400
parentbe2fa755e1d7b9757c98dc1153ed5827031e436e (diff)
Add missing find_package to an example
The find_package was not done for QOpenGLWidgets. This worked ok while building as part of the repository because the package is sought at the toplevel CMakeLists. However when building outside of the repo it is necessary to have. Pick-to: 6.1 Task-number: QTBUG-92541 Change-Id: I3b69925e7c8b22ff44507ee6103f34e82787a227 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
-rw-r--r--examples/statemachine/graphicsview/padnavigator/CMakeLists.txt7
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/statemachine/graphicsview/padnavigator/CMakeLists.txt b/examples/statemachine/graphicsview/padnavigator/CMakeLists.txt
index 979cca9..96a64fc 100644
--- a/examples/statemachine/graphicsview/padnavigator/CMakeLists.txt
+++ b/examples/statemachine/graphicsview/padnavigator/CMakeLists.txt
@@ -15,11 +15,8 @@ endif()
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/padnavigator")
-find_package(Qt6 COMPONENTS Core)
-find_package(Qt6 COMPONENTS Gui)
-find_package(Qt6 COMPONENTS StateMachine)
-find_package(Qt6 COMPONENTS Widgets)
-find_package(Qt6 COMPONENTS OpenGL) # special case
+find_package(Qt6 REQUIRED COMPONENTS Core Gui StateMachine Widgets)
+find_package(Qt6 OPTIONAL_COMPONENTS OpenGL OpenGLWidgets)
qt_add_executable(padnavigator
flippablepad.cpp flippablepad.h