summaryrefslogtreecommitdiffstats
path: root/examples/opengl/qopenglwidget
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opengl/qopenglwidget')
-rw-r--r--examples/opengl/qopenglwidget/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/opengl/qopenglwidget/CMakeLists.txt b/examples/opengl/qopenglwidget/CMakeLists.txt
index 1531343a28..586bd7130a 100644
--- a/examples/opengl/qopenglwidget/CMakeLists.txt
+++ b/examples/opengl/qopenglwidget/CMakeLists.txt
@@ -9,11 +9,12 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
-set(INSTALL_EXAMPLEDIR "examples")
+set(INSTALL_EXAMPLEDIR "examples/opengl/qopenglwidget")
find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Widgets)
+find_package(Qt6 COMPONENTS OpenGL)
add_qt_gui_executable(qopenglwidget
bubble.cpp bubble.h
@@ -24,9 +25,11 @@ add_qt_gui_executable(qopenglwidget
target_link_libraries(qopenglwidget PUBLIC
Qt::Core
Qt::Gui
+ Qt::OpenGL
Qt::Widgets
)
+
# Resources:
set(texture_resource_files
"qt.png"
@@ -39,7 +42,6 @@ qt6_add_resources(qopenglwidget "texture"
${texture_resource_files}
)
-
install(TARGETS qopenglwidget
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"