CMakeLists.txt 6.96 KB
Newer Older
1
project(kritaflake)
2

3 4 5 6
include_directories(
    ${CMAKE_SOURCE_DIR}/libs/flake/commands
    ${CMAKE_SOURCE_DIR}/libs/flake/tools
    ${CMAKE_SOURCE_DIR}/libs/flake/svg
7
    ${CMAKE_SOURCE_DIR}/libs/flake/text
8 9
    ${CMAKE_BINARY_DIR}/libs/flake
)
Tim Beaulen's avatar
Tim Beaulen committed
10

Thorsten Zachmann's avatar
Thorsten Zachmann committed
11
add_subdirectory(styles)
12
add_subdirectory(tests)
13
add_subdirectory(resources/tests)
14

15
set(kritaflake_SRCS
16
    KoGradientHelper.cpp
17
    KoFlake.cpp
18
    KoCanvasBase.cpp
19
    KoCanvasStrokeHelperBase.cpp
20
    KoResourceManager_p.cpp
21
    KoDerivedResourceConverter.cpp
22
    KoResourceUpdateMediator.cpp
23
    KoCanvasResourceProvider.cpp
24
    KoDocumentResourceManager.cpp
25
    KoCanvasObserverBase.cpp
Thomas Zander's avatar
Thomas Zander committed
26
    KoCanvasSupervisor.cpp
27
    KoDockFactoryBase.cpp
28
    KoDockRegistry.cpp
29
    KoDataCenterBase.cpp
30
    KoInsets.cpp
Tim Beaulen's avatar
Tim Beaulen committed
31
    KoPathShape.cpp
32
    KoPathPoint.cpp
33
    KoPathSegment.cpp
Tim Beaulen's avatar
Tim Beaulen committed
34
    KoSelection.cpp
35 36
    KoSelectedShapesProxy.cpp
    KoSelectedShapesProxySimple.cpp
Tim Beaulen's avatar
Tim Beaulen committed
37
    KoShape.cpp
38
    KoShapeAnchor.cpp
39
    KoShapeControllerBase.cpp
40
    KoShapeApplicationData.cpp
Tim Beaulen's avatar
Tim Beaulen committed
41
    KoShapeContainer.cpp
42
    KoShapeContainerModel.cpp
Tim Beaulen's avatar
Tim Beaulen committed
43 44
    KoShapeGroup.cpp
    KoShapeManager.cpp
45
    KoShapePaintingContext.cpp
46
    KoFrameShape.cpp
Thorsten Zachmann's avatar
Thorsten Zachmann committed
47 48
    KoMarker.cpp
    KoMarkerCollection.cpp
Thomas Zander's avatar
Thomas Zander committed
49
    KoToolBase.cpp
50
    KoCanvasController.cpp
51
    KoCanvasControllerWidget.cpp
Boudewijn Rempt's avatar
Boudewijn Rempt committed
52
    KoCanvasControllerWidgetViewport_p.cpp
53
    KoShapeRegistry.cpp
54
    KoDeferredShapeFactoryBase.cpp
55
    KoToolFactoryBase.cpp
56
    KoPathShapeFactory.cpp
57
    KoShapeFactoryBase.cpp
58
    KoShapeUserData.cpp
59
    KoParameterShape.cpp
60
    KoPointerEvent.cpp
61
    KoShapeController.cpp
62
    KoToolSelection.cpp
63
    KoShapeLayer.cpp
64
    KoPostscriptPaintDevice.cpp
65 66 67 68 69
    KoInputDevice.cpp
    KoToolManager_p.cpp
    KoToolManager.cpp
    KoToolRegistry.cpp
    KoToolProxy.cpp
70
    KoShapeSavingContext.cpp
71
    KoShapeLoadingContext.cpp
72
    KoLoadingShapeUpdater.cpp
73
    KoPathShapeLoader.cpp
74
    KoShapeStrokeModel.cpp
75
    KoShapeStroke.cpp
76 77 78
    KoShapeBackground.cpp
    KoColorBackground.cpp
    KoGradientBackground.cpp
79
    KoOdfGradientBackground.cpp
80
    KoHatchBackground.cpp
81
    KoPatternBackground.cpp
82
    KoVectorPatternBackground.cpp
83 84
    KoShapeFillWrapper.cpp
    KoShapeFillResourceConnector.cpp
85
    KoShapeConfigWidgetBase.cpp
86
    KoDrag.cpp
87
    KoSvgPaste.cpp
88
    KoDragOdfSaveHelper.cpp
89
    KoShapeOdfSaveHelper.cpp
90
    KoConnectionPoint.cpp
91
    KoConnectionShape.cpp
92
    KoConnectionShapeLoadingUpdater.cpp
93 94
    KoConnectionShapeFactory.cpp
    KoConnectionShapeConfigWidget.cpp
95
    KoSnapGuide.cpp
96
    KoSnapProxy.cpp
97
    KoSnapStrategy.cpp
98
    KoSnapData.cpp
99
    KoShapeShadow.cpp
100
    KoSharedLoadingData.cpp
101
    KoSharedSavingData.cpp
102
    KoViewConverter.cpp
103
    KoInputDeviceHandler.cpp
104
    KoInputDeviceHandlerEvent.cpp
105
    KoInputDeviceHandlerRegistry.cpp
106
    KoImageData.cpp
107
    KoImageData_p.cpp
108
    KoImageCollection.cpp
109
    KoOdfWorkaround.cpp
110
    KoFilterEffect.cpp
111
    KoFilterEffectStack.cpp
112
    KoFilterEffectFactoryBase.cpp
113
    KoFilterEffectRegistry.cpp
114
    KoFilterEffectConfigWidgetBase.cpp
115
    KoFilterEffectRenderContext.cpp
116
    KoFilterEffectLoadingContext.cpp
Thomas Zander's avatar
Thomas Zander committed
117
    KoTextShapeDataBase.cpp
Thorsten Zachmann's avatar
Thorsten Zachmann committed
118 119
    KoTosContainer.cpp
    KoTosContainerModel.cpp
120
    KoClipPath.cpp
121 122
    KoClipMask.cpp
    KoClipMaskPainter.cpp
123
    KoCurveFit.cpp
124
    KisGamutMaskViewConverter.cpp
125

126
    commands/KoShapeGroupCommand.cpp
127 128 129 130 131 132 133
    commands/KoShapeAlignCommand.cpp
    commands/KoShapeBackgroundCommand.cpp
    commands/KoShapeCreateCommand.cpp
    commands/KoShapeDeleteCommand.cpp
    commands/KoShapeDistributeCommand.cpp
    commands/KoShapeLockCommand.cpp
    commands/KoShapeMoveCommand.cpp
134
    commands/KoShapeResizeCommand.cpp
135 136
    commands/KoShapeShearCommand.cpp
    commands/KoShapeSizeCommand.cpp
137
    commands/KoShapeStrokeCommand.cpp
138
    commands/KoShapeUngroupCommand.cpp
139
    commands/KoShapeReorderCommand.cpp
140
    commands/KoShapeKeepAspectRatioCommand.cpp
141 142 143 144 145 146 147 148 149 150 151 152 153 154
    commands/KoPathBaseCommand.cpp
    commands/KoPathPointMoveCommand.cpp
    commands/KoPathControlPointMoveCommand.cpp
    commands/KoPathPointTypeCommand.cpp
    commands/KoPathPointRemoveCommand.cpp
    commands/KoPathPointInsertCommand.cpp
    commands/KoPathSegmentBreakCommand.cpp
    commands/KoPathBreakAtPointCommand.cpp
    commands/KoPathSegmentTypeCommand.cpp
    commands/KoPathCombineCommand.cpp
    commands/KoSubpathRemoveCommand.cpp
    commands/KoSubpathJoinCommand.cpp
    commands/KoParameterHandleMoveCommand.cpp
    commands/KoParameterToPathCommand.cpp
155
    commands/KoShapeTransformCommand.cpp
156
    commands/KoPathFillRuleCommand.cpp
157
    commands/KoConnectionShapeTypeCommand.cpp
158
    commands/KoShapeShadowCommand.cpp
159
    commands/KoPathReverseCommand.cpp
160
    commands/KoShapeRenameCommand.cpp
161
    commands/KoShapeRunAroundCommand.cpp
162
    commands/KoPathPointMergeCommand.cpp
163
    commands/KoShapeTransparencyCommand.cpp
164
    commands/KoShapeClipCommand.cpp
165
    commands/KoShapeUnclipCommand.cpp
Thorsten Zachmann's avatar
Thorsten Zachmann committed
166
    commands/KoPathShapeMarkerCommand.cpp
167
    commands/KoShapeConnectionChangeCommand.cpp
168
    commands/KoMultiPathPointMergeCommand.cpp
169
    commands/KoMultiPathPointJoinCommand.cpp
170
    commands/KoKeepShapesSelectedCommand.cpp
171
    commands/KoPathMergeUtils.cpp
172 173 174 175

    html/HtmlSavingContext.cpp
    html/HtmlWriter.cpp

176 177 178
    tools/KoCreateShapeStrategy.cpp
    tools/KoZoomTool.cpp
    tools/KoZoomToolFactory.cpp
179
    tools/KoZoomToolWidget.cpp
180 181 182
    tools/KoZoomStrategy.cpp
    tools/KoInteractionTool.cpp
    tools/KoInteractionStrategy.cpp
183
    tools/KoInteractionStrategyFactory.cpp
184 185 186
    tools/KoCreateShapesTool.cpp
    tools/KoCreateShapesToolFactory.cpp
    tools/KoShapeRubberSelectStrategy.cpp
187

188
    svg/KoShapePainter.cpp
189 190 191 192 193 194 195 196 197 198 199 200 201 202
    svg/SvgUtil.cpp
    svg/SvgGraphicContext.cpp
    svg/SvgSavingContext.cpp
    svg/SvgWriter.cpp
    svg/SvgStyleWriter.cpp
    svg/SvgShape.cpp
    svg/SvgParser.cpp
    svg/SvgStyleParser.cpp
    svg/SvgGradientHelper.cpp
    svg/SvgFilterHelper.cpp
    svg/SvgCssHelper.cpp
    svg/SvgClipPathHelper.cpp
    svg/SvgLoadingContext.cpp
    svg/SvgShapeFactory.cpp
203
    svg/parsers/SvgTransformParser.cpp
204

205 206 207 208
    text/KoSvgText.cpp
    text/KoSvgTextProperties.cpp
    text/KoSvgTextChunkShape.cpp
    text/KoSvgTextShape.cpp
209
    text/KoSvgTextShapeMarkupConverter.cpp
Boudewijn Rempt's avatar
Boudewijn Rempt committed
210

211
    resources/KoSvgSymbolCollectionResource.cpp
212
    resources/KoGamutMask.cpp
213

Boudewijn Rempt's avatar
Boudewijn Rempt committed
214
    FlakeDebug.cpp
215
    tests/MockShapes.cpp
216 217

    KisLockableCanvas.cpp
218
    KoShapeUtils.cpp
Tim Beaulen's avatar
Tim Beaulen committed
219 220
)

221
ki18n_wrap_ui(kritaflake_SRCS
222
    KoConnectionShapeConfigWidget.ui
223
    tools/KoZoomToolWidget.ui
224 225
)

226 227
add_library(kritaflake SHARED ${kritaflake_SRCS})
generate_export_header(kritaflake BASE_NAME kritaflake)
Laurent Montel's avatar
Laurent Montel committed
228

229 230 231 232 233
target_include_directories(kritaflake
    PUBLIC
    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/commands>
    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/tools>
    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/svg>
234
    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/text>
235 236
)

237
target_link_libraries(kritaflake kritapigment kritawidgetutils kritaodf kritacommand kritastroke KF5::WidgetsAddons Qt5::Svg)
Laurent Montel's avatar
Laurent Montel committed
238

239
set_target_properties(kritaflake PROPERTIES
240
    VERSION ${GENERIC_KRITA_LIB_VERSION} SOVERSION ${GENERIC_KRITA_LIB_SOVERSION}
Dirk Mueller's avatar
Dirk Mueller committed
241
)
Tim Beaulen's avatar
Tim Beaulen committed
242

243
install(TARGETS kritaflake  ${INSTALL_TARGETS_DEFAULT_ARGS})
244