Warning, /office/calligra/stage/part/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 project(stagepart)
0002 
0003 include_directories( ${KOMAIN_INCLUDES} ${KOPAGEAPP_INCLUDES} ${Boost_INCLUDE_DIR})
0004 
0005 if (BUILD_TESTING AND NOT WIN32) ## Disable tests in Windows whilst they break builds
0006     add_subdirectory(tests)
0007 endif()
0008 add_subdirectory(tools)
0009 
0010 ### calligrastageprivate ###
0011 set( calligrastageprivate_LIB_SRCS
0012      StageDebug.cpp
0013      KPrFactory.cpp
0014      KPrDocument.cpp
0015      KPrDeclarations.cpp
0016      KPrPart.cpp
0017      KPrView.cpp
0018      KPrViewModePresentation.cpp
0019      KPrViewModeNotes.cpp
0020      KPrViewModeSlidesSorter.cpp
0021      KPrViewModePreviewPageEffect.cpp
0022      KPrViewModePreviewShapeAnimations.cpp
0023      KPrPresentationTool.cpp
0024      KPrAnimationDirector.cpp
0025      KPrShapeAnimations.cpp
0026      KPrShapeManagerAnimationStrategy.cpp
0027      KPrShapeManagerDisplayMasterStrategy.cpp
0028      KPrPageData.cpp
0029      KPrPage.cpp
0030      KPrMasterPage.cpp
0031      KPrNotes.cpp
0032      KPrSoundData.cpp
0033      KPrSoundCollection.cpp
0034      KPrEventActionData.cpp
0035      KPrEventActionWidget.cpp
0036      KPrPageApplicationData.cpp
0037      KPrShapeApplicationData.cpp
0038      KPrCustomSlideShows.cpp
0039      KPrPresenterViewBaseInterface.cpp
0040      KPrPresenterViewInterface.cpp
0041      KPrPresenterViewSlidesInterface.cpp
0042      KPrPresenterViewToolWidget.cpp
0043      KPrPresenterViewWidget.cpp
0044      KPrEndOfSlideShowPage.cpp
0045      KPrPlaceholderShape.cpp
0046      KPrPlaceholderShapeFactory.cpp
0047      KPrPlaceholderStrategy.cpp
0048      KPrPlaceholderPictureStrategy.cpp
0049      KPrPlaceholderTextStrategy.cpp
0050      KPrPresentationHighlightWidget.cpp
0051      KPrPresentationDrawWidget.cpp
0052      KPrPresentationBlackWidget.cpp
0053      KPrPresentationStrategy.cpp
0054      KPrPresentationHighlightStrategy.cpp
0055      KPrPresentationBlackStrategy.cpp
0056      KPrPresentationStrategyBase.cpp
0057      KPrPresentationToolEventForwarder.cpp
0058      KPrPresentationDrawStrategy.cpp
0059      KPrPageSelectStrategyBase.cpp
0060      KPrPageSelectStrategyFixed.cpp
0061      KPrPageSelectStrategyActive.cpp
0062      KPrDurationParser.cpp
0063      KPrHtmlExport.cpp
0064      KPrHtmlExportUiDelegate.cpp
0065      KPrPicturesImport.cpp
0066      KPrPdfPrintJob.cpp
0067      KPrSlidesSorterDocumentModel.cpp
0068      KPrSlidesManagerView.cpp
0069      KPrCustomSlideShowsModel.cpp
0070      KPrSlidesSorterItemDelegate.cpp
0071      KPrPageLayoutWidget.cpp
0072      KPrPageTransition.cpp
0073 
0074      commands/KPrAnimationCreateCommand.cpp
0075      commands/KPrAnimationRemoveCommand.cpp
0076      commands/KPrPageEffectSetCommand.cpp
0077      commands/KPrPageLayoutCommand.cpp
0078      commands/KPrEditCustomSlideShowsCommand.cpp
0079      commands/KPrAddCustomSlideShowCommand.cpp
0080      commands/KPrDelCustomSlideShowCommand.cpp
0081      commands/KPrRenameCustomSlideShowCommand.cpp
0082      commands/KPrDeleteSlidesCommand.cpp
0083      commands/KPrEditAnimationTimeLineCommand.cpp
0084      commands/KPrAnimationEditNodeTypeCommand.cpp
0085      commands/KPrReorderAnimationCommand.cpp
0086      commands/KPrReplaceAnimationCommand.cpp
0087      commands/KPrPageTransitionSetCommand.cpp
0088 
0089      dockers/KPrPreviewWidget.cpp
0090 
0091      pageeffects/KPrPageEffectRunner.cpp
0092      pageeffects/KPrPageEffect.cpp
0093      pageeffects/KPrPageEffectStrategy.cpp
0094      pageeffects/KPrPageEffectFactory.cpp
0095      pageeffects/KPrPageEffectRegistry.cpp
0096 
0097      animations/KPrAnimationBase.cpp
0098      animations/KPrAnimSet.cpp
0099      animations/KPrAnimate.cpp
0100      animations/KPrAnimateColor.cpp
0101      animations/KPrAnimateMotion.cpp
0102      animations/KPrAnimateTransform.cpp
0103      animations/KPrAnimTransitionFilter.cpp
0104      animations/KPrAnimationFactory.cpp
0105      animations/KPrAnimationCache.cpp
0106      animations/KPrTextBlockPaintStrategy.cpp
0107      animations/KPrShapeAnimation.cpp
0108      animations/KPrAnimationStep.cpp
0109      animations/KPrAnimationSubStep.cpp
0110      animations/KPrAnimationLoader.cpp
0111      animations/KPrAnimationData.cpp
0112 
0113      animations/strategy/KPrAnimationValue.cpp
0114      animations/strategy/KPrFormulaParser.cpp
0115      animations/strategy/KPrAnimationAttribute.cpp
0116      animations/strategy/KPrSmilValues.cpp
0117      animations/strategy/KPrAttributeX.cpp
0118      animations/strategy/KPrAttributeY.cpp
0119      animations/strategy/KPrAttributeWidth.cpp
0120      animations/strategy/KPrAttributeHeight.cpp
0121      animations/strategy/KPrAttributeRotate.cpp
0122 
0123      pagelayout/KPrPlaceholder.cpp
0124      pagelayout/KPrPageLayout.cpp
0125      pagelayout/KPrPageLayouts.cpp
0126      pagelayout/KPrPageLayoutSharedSavingData.cpp
0127      pagelayout/KPrPlaceholders.cpp
0128 
0129      ui/KPrConfigureSlideShowDialog.cpp
0130      ui/KPrConfigurePresenterViewDialog.cpp
0131      ui/KPrPresentationToolWidget.cpp
0132      ui/KPrHtmlExportDialog.cpp
0133 
0134      tools/KPrPlaceholderTool.cpp
0135      tools/KPrPlaceholderToolFactory.cpp
0136    )
0137 
0138 if(Qt5DBus_FOUND)
0139 set( calligrastageprivate_LIB_SRCS
0140      ${calligrastageprivate_LIB_SRCS}
0141      KPrViewAdaptor.cpp
0142      KPrPresentationToolAdaptor.cpp
0143    )
0144 endif()
0145 
0146 ki18n_wrap_ui(calligrastageprivate_LIB_SRCS
0147      ui/KPrConfigureSlideShow.ui
0148      ui/KPrConfigurePresenterView.ui
0149      ui/KPrPresentationTool.ui
0150      ui/KPrHtmlExport.ui
0151    )
0152 
0153 add_library(calligrastageprivate SHARED ${calligrastageprivate_LIB_SRCS})
0154 generate_export_header(calligrastageprivate
0155     BASE_NAME stage
0156     EXPORT_FILE_NAME stage_generated_export.h
0157 )
0158 
0159 target_link_libraries(calligrastageprivate
0160     PUBLIC
0161         kopageapp
0162     PRIVATE
0163         kowidgets
0164         kotextlayout
0165         koplugin
0166         KF5::Archive
0167         KF5::IconThemes
0168         KF5::Completion
0169         Qt5::Svg
0170 )
0171 if(HAVE_OPENGL)
0172     target_link_libraries(calligrastageprivate PRIVATE Qt5::OpenGL)
0173 endif()
0174 
0175 set_target_properties(calligrastageprivate PROPERTIES VERSION ${GENERIC_CALLIGRA_LIB_VERSION} SOVERSION ${GENERIC_CALLIGRA_LIB_SOVERSION} )
0176 install(TARGETS calligrastageprivate  ${INSTALL_TARGETS_DEFAULT_ARGS})
0177 
0178 ### calligrastagepart ###
0179 set(calligrastagepart_PART_SRCS KPrFactoryInit.cpp )
0180 
0181 add_library(calligrastagepart MODULE ${calligrastagepart_PART_SRCS})
0182 
0183 calligra_part_desktop_to_json(calligrastagepart stagepart.desktop)
0184 
0185 target_link_libraries(calligrastagepart calligrastageprivate )
0186 
0187 install(TARGETS calligrastagepart DESTINATION ${PLUGIN_INSTALL_DIR}/calligra/parts)
0188 
0189 ### GUI files ###
0190 install( FILES calligrastage.rc calligrastage_readonly.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/calligrastage)
0191 
0192 install( FILES calligrastagerc DESTINATION ${CONFIG_INSTALL_DIR} )
0193 
0194 ### Predefined Animations ###
0195 install(FILES
0196         animations/animations.xml
0197         DESTINATION ${DATA_INSTALL_DIR}/calligrastage/animations)
0198 
0199 ### Include files ###
0200 if (SHOULD_BUILD_DEVEL_HEADERS)
0201 
0202 install( FILES
0203         stage_export.h
0204         KPrAnimationDirector.h
0205         KPrCustomSlideShows.h
0206         KPrDocument.h  
0207         KPrPage.h
0208         KPrPageData.h
0209         KPrDeclarations.h
0210         KPrPresentationTool.h
0211         KPrNotes.h
0212         KPrShapeAnimations.h
0213         KPrView.h
0214         KPrViewModePresentation.h
0215         DESTINATION ${INCLUDE_INSTALL_DIR}/calligrastage/part
0216         COMPONENT Devel)
0217 
0218 install( FILES 
0219          animations/KPrAnimationData.h
0220          animations/KPrAnimationStep.h
0221          animations/KPrShapeAnimation.h
0222          DESTINATION ${INCLUDE_INSTALL_DIR}/calligrastage/part/animations
0223          COMPONENT Devel)
0224 
0225 install( FILES
0226          pagelayout/KPrPlaceholders.h
0227          DESTINATION ${INCLUDE_INSTALL_DIR}/calligrastage/part/pagelayout
0228          COMPONENT Devel)
0229 endif()