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++

Fix build for Qt6: that generates the plugin on its own

Halla Rempt21c372118c0f
diff --git a/qmlmodules/libqml/CMakeLists.txt b/qmlmodules/libqml/CMakeLists.txt
index 3cc0a87cd5..eba71f4d77 100644
--- a/qmlmodules/libqml/CMakeLists.txt
+++ b/qmlmodules/libqml/CMakeLists.txt
@@ -7,13 +7,18 @@ if (QT_MAJOR_VERSION STREQUAL "6")
GENERATE_PLUGIN_SOURCE
)
+target_sources(KritaQmlPlugin
+ PRIVATE
+ SvgTextLabel.cpp
+ SvgTextLabel.h
+)
+
else ()
ecm_add_qml_module(KritaQmlPlugin
URI "org.krita.qml"
VERSION 1.0
CLASSNAME KritaQmlPlugin
)
-endif ()
target_sources(KritaQmlPlugin
PRIVATE
@@ -23,6 +28,8 @@ target_sources(KritaQmlPlugin
SvgTextLabel.h
)
+endif ()
+
ecm_target_qml_sources(KritaQmlPlugin SOURCES
qml/DoubleSpinBox.qml
)