diff options
Diffstat (limited to 'src/quickshapes/CMakeLists.txt')
-rw-r--r-- | src/quickshapes/CMakeLists.txt | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/quickshapes/CMakeLists.txt b/src/quickshapes/CMakeLists.txt new file mode 100644 index 0000000000..78297fb532 --- /dev/null +++ b/src/quickshapes/CMakeLists.txt @@ -0,0 +1,59 @@ +# Copyright (C) 2022 The Qt Company Ltd. +# SPDX-License-Identifier: BSD-3-Clause + +##################################################################### +## QuickShapesPrivate Module: +##################################################################### + +qt_internal_add_qml_module(QuickShapesPrivate + URI "QtQuick.Shapes" + VERSION "${PROJECT_VERSION}" + PLUGIN_TARGET qmlshapesplugin + NO_PLUGIN_OPTIONAL + NO_GENERATE_PLUGIN_SOURCE + CLASS_NAME QmlShapesPlugin + DEPENDENCIES + QtQuick/auto + INTERNAL_MODULE + SOURCES + qquickshape.cpp qquickshape_p.h + qquickshape_p_p.h + qquickshapegenericrenderer.cpp qquickshapegenericrenderer_p.h + qquickshapesglobal.h qquickshapesglobal_p.h + qquickshapecurverenderer.cpp qquickshapecurverenderer_p.h qquickshapecurverenderer_p_p.h + qquickshapesoftwarerenderer.cpp qquickshapesoftwarerenderer_p.h + PUBLIC_LIBRARIES + Qt::Core + Qt::GuiPrivate + Qt::Qml + Qt::QuickPrivate + ) + +# We need to do additional initialization, so we have to provide our own +# plugin class rather than using the generated one +qt_internal_extend_target(qmlshapesplugin + SOURCES qquickshapesplugin.cpp + LIBRARIES Qt::QuickShapesPrivate +) + +qt_internal_add_shaders(QuickShapesPrivate "qtquickshapes_shaders" + SILENT + BATCHABLE + PRECOMPILE + OPTIMIZED + MULTIVIEW + PREFIX + "/qt-project.org/shapes" + FILES + "shaders_ng/lineargradient.vert" + "shaders_ng/lineargradient.frag" + "shaders_ng/radialgradient.vert" + "shaders_ng/radialgradient.frag" + "shaders_ng/conicalgradient.vert" + "shaders_ng/conicalgradient.frag" + "shaders_ng/texturefill.vert" + "shaders_ng/texturefill.frag" + "shaders_ng/wireframe.frag" + "shaders_ng/wireframe.vert" +) + |