diff options
Diffstat (limited to 'examples/opengl/hellogl2/CMakeLists.txt')
-rw-r--r-- | examples/opengl/hellogl2/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/opengl/hellogl2/CMakeLists.txt b/examples/opengl/hellogl2/CMakeLists.txt index 06ea78d959..5df3c811e5 100644 --- a/examples/opengl/hellogl2/CMakeLists.txt +++ b/examples/opengl/hellogl2/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/hellogl2") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) +find_package(Qt6 COMPONENTS OpenGL) add_qt_gui_executable(hellogl2 glwidget.cpp glwidget.h @@ -25,6 +26,7 @@ add_qt_gui_executable(hellogl2 target_link_libraries(hellogl2 PUBLIC Qt::Core Qt::Gui + Qt::OpenGL Qt::Widgets ) |