1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
# Copyright (C) 2023 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
cmake_minimum_required(VERSION 3.16)
if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
project(painterPathQuickShape LANGUAGES C CXX ASM)
find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
endif()
find_package(Qt6 COMPONENTS ShaderTools)
qt_internal_add_manual_test(painterPathQuickShape
GUI
SOURCES
main.cpp
debugpaintitem.h debugpaintitem.cpp
svgpathloader.h svgpathloader.cpp
debugvisualizationcontroller.h debugvisualizationcontroller.cpp
LIBRARIES
Qt::Gui
Qt::Qml
Qt::Quick
Qt::QuickPrivate
Qt::QuickShapesPrivate
)
set(qml_resource_files
"1535737773.svg"
"main.qml"
"SvgShape.qml"
"ControlPanel.qml"
"ControlPoint.qml"
"TextShape.qml"
"SimpleShape.qml"
"SmallPolygon.qml"
"Squircle.qml"
"Intersect.qml"
"Intersect2.qml"
"ControlledShape.qml"
"Mussel.qml"
"Graziano.ttf"
"CubicShape.qml"
"DashedStroke.qml"
"hand-print.svg"
"background.png"
"arcDirection.qml"
"arcRotation.qml"
"capStyles.qml"
"cubicCurve.qml"
"dashPattern.qml"
"ellipticalArcs.qml"
"fillRules.qml"
"gradientSpreadModes.qml"
"joinStyles.qml"
"largeOrSmallArc.qml"
"linearGradient.qml"
"quadraticCurve.qml"
"radialGradient.qml"
"strokeOrFill.qml"
"text.qml"
"tiger.qml"
)
qt_internal_add_resource(painterPathQuickShape "qml"
PREFIX
"/"
FILES
${qml_resource_files}
)
qt_add_shaders(painterPathQuickShape "shaders"
BATCHABLE
PRECOMPILE
OPTIMIZED
PREFIX
"/"
FILES
"zoombox.frag"
)
qt_add_qml_module(painterPathQuickShape
VERSION 1.0
URI InstancingTest
RESOURCE_PREFIX /
)
|