summaryrefslogtreecommitdiffstats
path: root/examples/opengl/qopenglwindow
diff options
context:
space:
mode:
authorLeander Beernaert <leander.beernaert@qt.io>2020-01-16 10:42:05 +0100
committerLeander Beernaert <leander.beernaert@qt.io>2020-01-24 12:29:18 +0000
commit48c82e90af12da74c713665ddfd7f8d825ae5bdb (patch)
tree0efa87b0cd1b00c47fce0b566a7a0cbb35fed786 /examples/opengl/qopenglwindow
parent502d3d6744913899da87acfda5ebdab42c40329e (diff)
Post Merge Fixes
Change-Id: I1e06c01b76b119c3f23b6e6ecbaae8df719b70ce Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/opengl/qopenglwindow')
-rw-r--r--examples/opengl/qopenglwindow/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/opengl/qopenglwindow/CMakeLists.txt b/examples/opengl/qopenglwindow/CMakeLists.txt
index 182262791e..9d354d376b 100644
--- a/examples/opengl/qopenglwindow/CMakeLists.txt
+++ b/examples/opengl/qopenglwindow/CMakeLists.txt
@@ -9,10 +9,11 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
-set(INSTALL_EXAMPLEDIR "examples")
+set(INSTALL_EXAMPLEDIR "examples/opengl/qopenglwindow")
find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS OpenGL)
add_qt_gui_executable(qopenglwindow
background_renderer.cpp background_renderer.h
@@ -21,11 +22,14 @@ add_qt_gui_executable(qopenglwindow
target_include_directories(qopenglwindow PUBLIC
.
)
+
target_link_libraries(qopenglwindow PUBLIC
Qt::Core
Qt::Gui
+ Qt::OpenGL
)
+
# Resources:
set(shaders_resource_files
"background.frag"
@@ -38,7 +42,6 @@ qt6_add_resources(qopenglwindow "shaders"
${shaders_resource_files}
)
-
install(TARGETS qopenglwindow
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"