From 48c82e90af12da74c713665ddfd7f8d825ae5bdb Mon Sep 17 00:00:00 2001 From: Leander Beernaert Date: Thu, 16 Jan 2020 10:42:05 +0100 Subject: Post Merge Fixes Change-Id: I1e06c01b76b119c3f23b6e6ecbaae8df719b70ce Reviewed-by: Alexandru Croitor --- examples/opengl/hellogles3/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples/opengl/hellogles3/CMakeLists.txt') diff --git a/examples/opengl/hellogles3/CMakeLists.txt b/examples/opengl/hellogles3/CMakeLists.txt index d642b214c8..7e8a5e57a7 100644 --- a/examples/opengl/hellogles3/CMakeLists.txt +++ b/examples/opengl/hellogles3/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/hellogles3") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS OpenGL) add_qt_gui_executable(hellogles3 ../hellogl2/logo.cpp ../hellogl2/logo.h @@ -22,8 +23,10 @@ add_qt_gui_executable(hellogles3 target_link_libraries(hellogles3 PUBLIC Qt::Core Qt::Gui + Qt::OpenGL ) + # Resources: set(hellogles3_resource_files "qtlogo.png" @@ -36,7 +39,6 @@ qt6_add_resources(hellogles3 "hellogles3" ${hellogles3_resource_files} ) - install(TARGETS hellogles3 RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" -- cgit v1.2.3