Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

CMakeLists.txt 3.61 KB
Newer Older
Casper Boemann's avatar
Casper Boemann committed
1
include_directories( ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${KOMAIN_INCLUDES} ${PIGMENT_INCLUDES})
Tim Beaulen's avatar
Tim Beaulen committed
2

3 4 5 6 7 8
if(KDE4_BUILD_TESTS)
    # only with this definition will the FLAKE_TEST_EXPORT macro do something
    add_definitions(-DCOMPILING_TESTS)
endif(KDE4_BUILD_TESTS)


9
add_subdirectory(tests)
10
add_subdirectory(pics)
11

Tim Beaulen's avatar
Tim Beaulen committed
12
set(flake_SRCS
13
    KoCanvasBase.cpp
14
    KoCanvasResourceProvider.cpp
Tim Beaulen's avatar
Tim Beaulen committed
15 16
    KoInteractionStrategy.cpp
    KoInteractionTool.cpp
17
    KoShapeBorderModel.cpp
Tim Beaulen's avatar
Tim Beaulen committed
18 19
    KoLineBorder.cpp
    KoPathShape.cpp
20
    KoPathPoint.cpp
Tim Beaulen's avatar
Tim Beaulen committed
21 22 23 24
    KoSelection.cpp
    KoShape.cpp
    KoShapeContainer.cpp
    KoShapeGroup.cpp
25
    KoShapeConnection.cpp
Tim Beaulen's avatar
Tim Beaulen committed
26 27 28 29
    KoShapeManager.cpp
    KoShapeMoveStrategy.cpp
    KoShapeResizeStrategy.cpp
    KoShapeRotateStrategy.cpp
30
    KoShapeShearStrategy.cpp
Tim Beaulen's avatar
Tim Beaulen committed
31 32
    KoShapeRubberSelectStrategy.cpp
    KoTool.cpp
33
    KoCanvasController.cpp
34
    KoCanvasController_p.cpp
35 36
    KoCreateShapeStrategy.cpp
    KoCreateShapesTool.cpp
37
    KoShapeRegistry.cpp
38 39
    KoToolFactory.cpp
    KoCreateShapesToolFactory.cpp
40
    KoInteractionToolFactory.cpp
41
    KoPathShapeFactory.cpp
42
    KoShapeFactory.cpp
43
    KoShapeUserData.cpp
44 45
    KoCreatePathTool.cpp
    KoCreatePathToolFactory.cpp
46 47
    KoPathToolFactory.cpp
    KoPathTool.cpp
48 49
    KoPathPointRubberSelectStrategy.cpp
    KoPathPointMoveStrategy.cpp
50
    KoPathControlPointMoveStrategy.cpp
51
    KoPointGroup.cpp
52 53
    KoParameterShape.cpp
    KoParameterChangeStrategy.cpp
54
    KoPointerEvent.cpp
55
    KoShapeController.cpp
56
    KoToolSelection.cpp
57
    KoShapeLayer.cpp
58
    KoPostscriptPaintDevice.cpp
59 60 61 62 63
    KoInputDevice.cpp
    KoToolManager_p.cpp
    KoToolManager.cpp
    KoToolRegistry.cpp
    KoToolProxy.cpp
64
    KoShapeSavingContext.cpp
65
    KoShapeLoadingContext.cpp
Thomas Zander's avatar
Thomas Zander committed
66 67
    KoPanTool.cpp
    KoPanToolFactory.cpp
Casper Boemann's avatar
Casper Boemann committed
68
    KoZoomTool.cpp
69 70
    KoZoomToolFactory.cpp
    KoZoomStrategy.cpp
71
    KoSvgPathParser.cpp
72
    KoPathShapeLoader.cpp
73
    ShapeDeleter_p.cpp
74
    commands/KoShapeGroupCommand.cpp
75 76 77 78 79 80 81 82 83 84 85
    commands/KoShapeAlignCommand.cpp
    commands/KoShapeBackgroundCommand.cpp
    commands/KoShapeBorderCommand.cpp
    commands/KoShapeCreateCommand.cpp
    commands/KoShapeDeleteCommand.cpp
    commands/KoShapeDistributeCommand.cpp
    commands/KoShapeLockCommand.cpp
    commands/KoShapeMoveCommand.cpp
    commands/KoShapeRotateCommand.cpp
    commands/KoShapeShearCommand.cpp
    commands/KoShapeSizeCommand.cpp
86
    commands/KoShapeUngroupCommand.cpp
87
    commands/KoShapeReorderCommand.cpp
88
    commands/KoShapeKeepAspectRatioCommand.cpp
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
    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/KoPathSeparateCommand.cpp
    commands/KoSubpathRemoveCommand.cpp
    commands/KoSubpathJoinCommand.cpp
    commands/KoParameterHandleMoveCommand.cpp
    commands/KoParameterToPathCommand.cpp
104
    commands/KoShapeTransformCommand.cpp
Tim Beaulen's avatar
Tim Beaulen committed
105 106
)

Laurent Montel's avatar
Laurent Montel committed
107 108
kde4_add_library(flake SHARED ${flake_SRCS})

109
target_link_libraries(flake ${KDE4_KDEUI_LIBS} komain kstore pigment)
Laurent Montel's avatar
Laurent Montel committed
110

111 112 113 114
if(HAVE_OPENGL)
    target_link_libraries(flake ${OPENGL_LIBRARIES} ${QT_QTOPENGL_LIBRARY})
endif(HAVE_OPENGL)

115
set_target_properties(flake PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
Tim Beaulen's avatar
Tim Beaulen committed
116

117
########### install files ###############
Tim Beaulen's avatar
Tim Beaulen committed
118

119
install(TARGETS flake  DESTINATION ${LIB_INSTALL_DIR})
120
install( FILES flake.desktop flaketool.desktop flakeshape.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
Tim Beaulen's avatar
Tim Beaulen committed
121