Warning, /office/calligra/libs/main/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 if (BUILD_TESTING) 0002 add_subdirectory( tests ) 0003 endif () 0004 0005 kde_enable_exceptions() 0006 0007 if (APPLE) 0008 find_library(FOUNDATION_LIBRARY Foundation) 0009 endif () 0010 0011 include_directories( ${KOMAIN_INCLUDES}) 0012 0013 ########### next target ############### 0014 0015 if( Qca-qt5_FOUND ) 0016 add_definitions( -DQCA2 ) 0017 endif() 0018 0019 set(komain_LIB_SRCS 0020 KoAutoSaveRecoveryDialog.cpp 0021 KoApplication.cpp 0022 KoComponentData.cpp 0023 KoDockerManager.cpp 0024 KoDocument.cpp 0025 KoDocumentEntry.cpp 0026 KoMainWindow.cpp 0027 KoPrintingDialog.cpp 0028 KoPrintJob.cpp 0029 KoVersionDialog.cpp 0030 KoView.cpp 0031 KoFilterManager.cpp 0032 KoFilterChain.cpp 0033 KoFilter.cpp 0034 KoFilterEntry.cpp 0035 KoFilterManager_p.cpp 0036 KoFilterVertex.cpp 0037 KoFilterGraph.cpp 0038 KoFilterEdge.cpp 0039 KoFilterChainLink.cpp 0040 KoFilterChainLinkList.cpp 0041 KoStandardAction.cpp 0042 KoUndoStackAction.cpp 0043 config/KoConfigDocumentPage.cpp 0044 config/KoConfigGridPage.cpp 0045 config/KoConfigMiscPage.cpp 0046 0047 KoDocumentSectionDelegate.cpp 0048 KoDocumentSectionToolTip.cpp 0049 KoDocumentSectionView.cpp 0050 0051 KoDetailsPane.cpp 0052 KoOpenPane.cpp 0053 KoRecentDocumentsPane.cpp 0054 KoTemplate.cpp 0055 KoTemplateCreateDia.cpp 0056 KoTemplateGroup.cpp 0057 KoTemplates.cpp 0058 KoTemplatesPane.cpp 0059 KoTemplateTree.cpp 0060 0061 KoFindBase.cpp 0062 KoFindMatch.cpp 0063 KoFindText.cpp 0064 KoFindOption.cpp 0065 KoFindOptionSet.cpp 0066 KoFindStyle.cpp 0067 0068 KoPart.cpp 0069 0070 MainDebug.cpp 0071 Calligra2Migration.cpp 0072 ) 0073 0074 if( Qt5DBus_FOUND ) 0075 set(komain_LIB_SRCS ${komain_LIB_SRCS} 0076 KoApplicationAdaptor.cpp 0077 KoViewAdaptor.cpp 0078 KoPartAdaptor.cpp 0079 ) 0080 endif() 0081 0082 ki18n_wrap_ui( komain_LIB_SRCS 0083 KoOpenPaneBase.ui 0084 KoDetailsPaneBase.ui 0085 ) 0086 0087 QT5_WRAP_CPP(komain_HEADERS_MOC KoDocumentSectionPropertyAction_p.h) 0088 0089 add_library(komain SHARED ${komain_HEADERS_MOC} ${komain_LIB_SRCS}) 0090 generate_export_header(komain 0091 EXPORT_FILE_NAME komain_generated_export.h 0092 ) 0093 0094 target_link_libraries(komain 0095 PUBLIC 0096 kowidgets 0097 kotextlayout 0098 koversion 0099 PRIVATE 0100 koplugin 0101 KF5::Notifications 0102 KF5::CoreAddons 0103 KF5::ItemViews 0104 KF5::KIOFileWidgets 0105 KF5::KIOCore 0106 KF5::Completion 0107 KF5::IconThemes 0108 KF5::DBusAddons 0109 ) 0110 0111 if( KF5Activities_FOUND ) 0112 target_link_libraries(komain PRIVATE KF5::Activities) 0113 endif() 0114 0115 if (APPLE) 0116 target_link_libraries(komain PRIVATE ${FOUNDATION_LIBRARY}) 0117 endif () 0118 0119 set_target_properties(komain PROPERTIES 0120 VERSION ${GENERIC_CALLIGRA_LIB_VERSION} SOVERSION ${GENERIC_CALLIGRA_LIB_SOVERSION} 0121 ) 0122 install(TARGETS komain ${INSTALL_TARGETS_DEFAULT_ARGS} ) 0123 0124 ########### install files ############### 0125 0126 # TODO: with the new embedded JSON data for plugins there is no schema ATM to define extended properties 0127 # calligradocker.desktop 0128 0129 install(FILES calligra_shell.rc DESTINATION ${DATA_INSTALL_DIR}/calligra ) 0130 0131 if (APPLE) 0132 install(FILES osx.stylesheet DESTINATION ${DATA_INSTALL_DIR}/calligra ) 0133 endif () 0134 0135 if (SHOULD_BUILD_DEVEL_HEADERS) 0136 0137 # For now, don't install the header files because of the conflict with the komvc 0138 # library. 0139 if (FALSE) 0140 install( FILES 0141 KoApplication.h 0142 KoComponentData.h 0143 KoDocument.h 0144 KoDocumentEntry.h 0145 KoDocumentSectionModel.h 0146 KoFilter.h 0147 KoFilterChain.h 0148 KoFilterChainLinkList.h 0149 KoFilterEntry.h 0150 KoFilterGraph.h 0151 KoFilterManager.h 0152 KoFilterVertex.h 0153 KoFindBase.h 0154 KoFindText.h 0155 KoFindMatch.h 0156 KoFindOption.h 0157 KoFindOptionSet.h 0158 KoMainWindow.h 0159 KoPageWidgetItem.h 0160 MacSupport.h 0161 KoPart.h 0162 KoPrintJob.h 0163 KoVersionDialog.h 0164 KoView.h 0165 KoStandardAction.h 0166 komain_export.h 0167 DESTINATION ${INCLUDE_INSTALL_DIR}/calligra COMPONENT Devel) 0168 0169 if( Qt5DBus_FOUND ) 0170 install( FILES 0171 KoApplicationAdaptor.h 0172 KoViewAdaptor.h 0173 DESTINATION ${INCLUDE_INSTALL_DIR}/calligra COMPONENT Devel) 0174 endif() 0175 endif() 0176 0177 endif()