Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Add Qt6::OpenGLWidgets

Halla Remptc6510922ef6e
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fb0fe2c51d..b4f71540d7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -456,6 +456,7 @@ if (QT_MAJOR_VERSION STREQUAL "6")
REQUIRED COMPONENTS
Core5Compat
OpenGL
+ OpenGLWidgets
)
endif()
diff --git a/libs/flake/CMakeLists.txt b/libs/flake/CMakeLists.txt
index 4b291f80b7..eb0bdb85ed 100644
--- a/libs/flake/CMakeLists.txt
+++ b/libs/flake/CMakeLists.txt
@@ -285,6 +285,13 @@ target_link_libraries(kritaflake
libunibreak::libunibreak
)
+if (QT_MAJOR_VERSION STREQUAL "6")
+target_link_libraries(kritaflake
+ PUBLIC
+ Qt${QT_MAJOR_VERSION}::OpenGLWidgets
+)
+endif()
+
set_target_properties(kritaflake PROPERTIES
VERSION ${GENERIC_KRITA_LIB_VERSION} SOVERSION ${GENERIC_KRITA_LIB_SOVERSION}
)