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

0001 if(BUILD_TESTING)
0002     add_subdirectory( tests )
0003 endif()
0004 add_subdirectory( pics )
0005 
0006 include_directories(${KOTEXT_INCLUDES} ${KOODF_INCLUDES} ${PIGMENT_INCLUDES})
0007 include_directories(${CMAKE_SOURCE_DIR}/libs/widgetutils)
0008 include_directories(${CMAKE_CURRENT_BINARY_DIR})
0009 if (LIBATTICA_FOUND)
0010     include_directories(${LIBATTICA_INCLUDE_DIR})
0011 endif ()
0012 
0013 set(kowidgets_LIB_SRCS
0014     KoFontComboBox.cpp
0015     KoGradientEditWidget.cpp
0016     KoResourcePaths.cpp
0017     KoVBox.cpp
0018     KoDialog.cpp
0019     KoGlobal.cpp
0020     KoZoomWidget.cpp
0021     KoTagToolButton.cpp
0022     KoTagChooserWidget.cpp
0023     KoTagFilterWidget.cpp
0024     KoResourceTaggingManager.cpp
0025     KoResourceItemChooserContextMenu.cpp
0026     KoAspectButton.cpp
0027     KoCsvImportDialog.cpp
0028     KoPageLayoutDialog.cpp
0029     KoPageLayoutWidget.cpp
0030     KoPagePreviewWidget.cpp
0031     KoPositionSelector.cpp
0032     KoSliderCombo.cpp
0033     KoColorPopupButton.cpp
0034     KoConfigAuthorPage.cpp
0035     KoUnitDoubleSpinBox.cpp
0036     KoZoomAction.cpp
0037     KoZoomController.cpp
0038     KoZoomInput.cpp
0039     KoZoomHandler.cpp
0040     KoZoomMode.cpp
0041     KoDpi.cpp
0042     KoGlobal.cpp
0043     KoColorPatch.cpp
0044     KoColorPopupAction.cpp
0045     KoColorSetWidget.cpp
0046     KoColorSlider.cpp
0047     KoDualColorButton.cpp
0048     KoEditColorSetDialog.cpp
0049     KoTriangleColorSelector.cpp
0050     KoResourcePopupAction.cpp
0051     KoStrokeConfigWidget.cpp
0052     KoFillConfigWidget.cpp
0053     KoShadowConfigWidget.cpp
0054     KoIconToolTip.cpp
0055     KoResourceItemChooser.cpp
0056     KoResourceItemChooserSync.cpp
0057     KoResourceSelector.cpp
0058     KoResourceModel.cpp
0059     KoResourceItemDelegate.cpp
0060     KoResourceItemView.cpp
0061     KoResourceTagStore.cpp
0062     KoRuler.cpp
0063     KoRulerController.cpp
0064     KoItemToolTip.cpp
0065     KoCheckerBoardPainter.cpp
0066     KoResourceServerAdapter.cpp
0067     KoResourceServerProvider.cpp
0068     KoLineStyleSelector.cpp
0069     KoLineStyleItemDelegate.cpp
0070     KoLineStyleModel.cpp
0071     KoMarkerModel.cpp
0072     KoMarkerItemDelegate.cpp
0073     KoMarkerSelector.cpp
0074     KoDockWidgetTitleBar.cpp
0075     KoDockWidgetTitleBarButton.cpp
0076     KoViewItemContextBar.cpp
0077     KoContextBarButton.cpp
0078     KoResourceFiltering.cpp
0079     KoResourceModelBase.cpp
0080 
0081     KoToolBoxButton.cpp
0082     KoToolBox.cpp
0083     KoToolBoxDocker.cpp
0084     KoToolBoxFactory.cpp
0085     KoToolBoxLayout_p.cpp
0086     KoToolDocker.cpp
0087     
0088     KoModeBox.cpp
0089     KoModeBoxDocker.cpp
0090     KoModeBoxFactory.cpp
0091 
0092     KoDocumentInfoDlg.cpp
0093     KoDocumentInfoPropsPage.cpp
0094 
0095     KoGlobal.cpp
0096     KoTableView.cpp
0097 
0098     WidgetsDebug.cpp
0099 
0100 )
0101 
0102 ki18n_wrap_ui( kowidgets_LIB_SRCS
0103     KoConfigAuthorPage.ui
0104     KoCsvImportDialog.ui
0105     koDocumentInfoAboutWidget.ui
0106     koDocumentInfoAuthorWidget.ui
0107     KoEditColorSet.ui
0108     KoPageLayoutWidget.ui
0109     KoShadowConfigWidget.ui
0110 )
0111 
0112 
0113 add_library(kowidgets SHARED ${kowidgets_LIB_SRCS})
0114 generate_export_header(kowidgets BASE_NAME kowidgets)
0115 
0116 target_link_libraries(kowidgets
0117     PUBLIC
0118         kotext
0119         pigmentcms
0120         kowidgetutils
0121         KF5::KIOWidgets
0122     PRIVATE
0123         KF5::GuiAddons
0124         KF5::WidgetsAddons
0125         KF5::ConfigCore
0126         KF5::Codecs
0127         KF5::Completion
0128         KF5::CoreAddons
0129         KF5::IconThemes
0130 )
0131 
0132 if(GHNS)
0133     target_link_libraries(kowidgets PRIVATE KF5::NewStuff)
0134 endif ()
0135 
0136 if(X11_FOUND)
0137     target_link_libraries(kowidgets PRIVATE Qt5::X11Extras ${X11_LIBRARIES})
0138 endif()
0139 
0140 set_target_properties(kowidgets PROPERTIES
0141     VERSION ${GENERIC_CALLIGRA_LIB_VERSION} SOVERSION ${GENERIC_CALLIGRA_LIB_SOVERSION}
0142 )
0143 
0144 install(TARGETS kowidgets  ${INSTALL_TARGETS_DEFAULT_ARGS})
0145 
0146 if (SHOULD_BUILD_DEVEL_HEADERS)
0147 
0148 install( FILES
0149     KoGlobal.h
0150     KoResourceItemChooserContextMenu.h
0151     KoGenericRegistryModel.h
0152     KoPageLayoutDialog.h
0153     KoPageLayoutWidget.h
0154     KoPagePreviewWidget.h
0155     KoPositionSelector.h
0156     ${CMAKE_CURRENT_BINARY_DIR}/kowidgets_export.h
0157     KoZoomAction.h
0158     KoZoomController.h
0159     KoZoomInput.h
0160     KoDpi.h
0161     KoZoomHandler.h
0162     KoZoomMode.h
0163     KoGlobal.h
0164     KoColorPatch.h
0165     KoStrokeConfigWidget.h
0166     KoFillConfigWidget.h
0167     KoShadowConfigWidget.h
0168     KoColorPopupAction.h
0169     KoColorSetWidget.h
0170     KoColorSlider.h
0171     KoDualColorButton.h
0172     KoEditColorSetDialog.h
0173     KoTriangleColorSelector.h
0174     KoResourceItemChooser.h
0175     KoResourceSelector.h
0176     KoResourceServer.h
0177     KoResourceServerAdapter.h
0178     KoResourceServerObserver.h
0179     KoResourceServerProvider.h
0180     KoResourceTagStore.h
0181     KoLineStyleSelector.h
0182     KoDockWidgetTitleBar.h
0183     KoDockWidgetTitleBarButton.h
0184 
0185     KoResourceModelBase.h
0186 
0187     KoGlobal.h
0188 
0189     DESTINATION
0190     ${INCLUDE_INSTALL_DIR}/calligra
0191 COMPONENT Devel)
0192 
0193 endif()