diff options
Diffstat (limited to 'examples/opengl/computegles31/CMakeLists.txt')
-rw-r--r-- | examples/opengl/computegles31/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/opengl/computegles31/CMakeLists.txt b/examples/opengl/computegles31/CMakeLists.txt index 306fe8638e..2012fca361 100644 --- a/examples/opengl/computegles31/CMakeLists.txt +++ b/examples/opengl/computegles31/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/computegles31") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS OpenGL) add_qt_gui_executable(computegles31 glwindow.cpp glwindow.h @@ -21,8 +22,10 @@ add_qt_gui_executable(computegles31 target_link_libraries(computegles31 PUBLIC Qt::Core Qt::Gui + Qt::OpenGL ) + # Resources: set(computegles31_resource_files "Qt-logo-medium.png" @@ -35,7 +38,6 @@ qt6_add_resources(computegles31 "computegles31" ${computegles31_resource_files} ) - install(TARGETS computegles31 RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" |