Warning, /office/calligra/libs/text/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 include_directories(${KOTEXT_INCLUDES} 0002 ${FONTCONFIG_INCLUDE_DIR} 0003 ${FREETYPE_INCLUDE_DIRS}) 0004 0005 if(BUILD_TESTING) 0006 add_subdirectory( tests ) 0007 add_subdirectory( styles/tests ) 0008 endif() 0009 0010 ########### next target ############### 0011 set(kotext_LIB_SRCS 0012 KoDocumentRdfBase.cpp 0013 KoText.cpp 0014 KoTextBlockData.cpp 0015 KoTextBlockBorderData.cpp 0016 KoTextBlockPaintStrategyBase.cpp 0017 KoTextOdfSaveHelper.cpp 0018 KoTextPaste.cpp 0019 KoTextDocument.cpp 0020 KoTextEditor.cpp 0021 KoTextEditor_undo.cpp 0022 KoTextEditor_format.cpp 0023 KoList.cpp 0024 0025 KoTextEditingRegistry.cpp 0026 KoTextEditingFactory.cpp 0027 KoTextEditingPlugin.cpp 0028 0029 KoTextRangeManager.cpp 0030 KoInlineTextObjectManager.cpp 0031 KoInlineObjectFactoryBase.cpp 0032 KoInlineObjectRegistry.cpp 0033 InsertInlineObjectActionBase_p.cpp 0034 InsertVariableAction.cpp 0035 InsertNamedVariableAction.cpp 0036 InsertTextReferenceAction.cpp 0037 InsertTextLocator.cpp 0038 KoInlineObject.cpp 0039 KoTextRange.cpp 0040 KoVariable.cpp 0041 KoVariableManager.cpp 0042 KoNamedVariable.cpp 0043 KoSection.cpp 0044 KoSectionEnd.cpp 0045 KoSectionUtils.cpp 0046 KoSectionModel.cpp 0047 KoTextLocator.cpp 0048 KoTextReference.cpp 0049 KoAnchorInlineObject.cpp 0050 KoAnchorTextRange.cpp 0051 KoTextShapeSavingContext.cpp 0052 KoAnnotation.cpp 0053 KoAnnotationManager.cpp 0054 KoBookmark.cpp 0055 KoBookmarkManager.cpp 0056 KoInlineNote.cpp 0057 KoInlineCite.cpp 0058 KoTextSoftPageBreak.cpp 0059 FindDirection_p.cpp 0060 KoFindStrategy.cpp 0061 KoReplaceStrategy.cpp 0062 KoFind_p.cpp 0063 KoFind.cpp 0064 KoTextDebug.cpp 0065 KoTextPage.cpp 0066 KoPageProvider.cpp 0067 KoTableColumnAndRowStyleManager.cpp 0068 KoTextInlineRdf.cpp 0069 KoTextMeta.cpp 0070 KoTextTableTemplate.cpp 0071 0072 OdfTextTrackStyles.cpp 0073 0074 ToCBibGeneratorInfo.cpp 0075 KoTableOfContentsGeneratorInfo.cpp 0076 KoBibliographyInfo.cpp 0077 BibliographyGenerator.cpp 0078 0079 styles/Styles_p.cpp 0080 styles/KoCharacterStyle.cpp 0081 styles/KoParagraphStyle.cpp 0082 styles/KoStyleManager.cpp 0083 styles/KoListStyle.cpp 0084 styles/KoListLevelProperties.cpp 0085 styles/KoTableStyle.cpp 0086 styles/KoTableColumnStyle.cpp 0087 styles/KoTableRowStyle.cpp 0088 styles/KoTableCellStyle.cpp 0089 styles/KoSectionStyle.cpp 0090 opendocument/KoTextSharedLoadingData.cpp 0091 opendocument/KoTextSharedSavingData.cpp 0092 opendocument/KoTextLoader.cpp 0093 opendocument/KoTextWriter_p.cpp 0094 opendocument/KoTextWriter.cpp 0095 0096 changetracker/KoChangeTracker.cpp 0097 changetracker/KoChangeTrackerElement.cpp 0098 changetracker/KoFormatChangeInformation.cpp 0099 changetracker/KoDeletedRowColumnDataStore.cpp 0100 changetracker/KoDeletedRowData.cpp 0101 changetracker/KoDeletedColumnData.cpp 0102 changetracker/KoDeletedCellData.cpp 0103 0104 commands/ChangeAnchorPropertiesCommand.cpp 0105 commands/ChangeListCommand.cpp 0106 commands/ChangeStylesCommand.cpp 0107 commands/ChangeStylesMacroCommand.cpp 0108 commands/DeleteAnchorsCommand.cpp 0109 commands/DeleteAnnotationsCommand.cpp 0110 commands/DeleteCommand.cpp 0111 commands/DeleteTableColumnCommand.cpp 0112 commands/DeleteTableRowCommand.cpp 0113 commands/InsertNoteCommand.cpp 0114 commands/InsertTableColumnCommand.cpp 0115 commands/InsertTableRowCommand.cpp 0116 commands/ResizeTableCommand.cpp 0117 commands/InsertInlineObjectCommand.cpp 0118 commands/ListItemNumberingCommand.cpp 0119 commands/TextPasteCommand.cpp 0120 commands/AddTextRangeCommand.cpp 0121 commands/AddAnnotationCommand.cpp 0122 commands/ParagraphFormattingCommand.cpp 0123 commands/RenameSectionCommand.cpp 0124 commands/NewSectionCommand.cpp 0125 commands/SplitSectionsCommand.cpp 0126 0127 KoTextDrag.cpp 0128 KoTextCommandBase.cpp 0129 0130 TextDebug.cpp 0131 ) 0132 0133 if( SHOULD_BUILD_FEATURE_RDF ) 0134 set(kotext_LIB_SRCS ${kotext_LIB_SRCS} 0135 KoTextRdfCore.cpp 0136 ) 0137 endif() 0138 0139 add_library(kotext SHARED ${kotext_LIB_SRCS}) 0140 generate_export_header(kotext BASE_NAME kotext) 0141 0142 target_link_libraries(kotext 0143 PUBLIC 0144 flake 0145 KF5::TextWidgets 0146 PRIVATE 0147 koplugin 0148 KF5::WindowSystem # KoFind to activate the window with content found 0149 ) 0150 if( SHOULD_BUILD_FEATURE_RDF ) 0151 target_link_libraries(kotext PRIVATE ${SOPRANO_LIBRARIES}) 0152 endif() 0153 0154 if( FONTCONFIG_FOUND ) 0155 target_link_libraries(kotext PRIVATE Fontconfig::Fontconfig) 0156 endif() 0157 0158 if( FREETYPE_FOUND ) 0159 target_link_libraries(kotext PRIVATE Freetype::Freetype) 0160 endif() 0161 0162 0163 set_target_properties(kotext PROPERTIES 0164 VERSION ${GENERIC_CALLIGRA_LIB_VERSION} SOVERSION ${GENERIC_CALLIGRA_LIB_SOVERSION} 0165 ) 0166 install(TARGETS kotext ${INSTALL_TARGETS_DEFAULT_ARGS}) 0167 0168 ########### install files ############### 0169 0170 # TODO: with the new embedded JSON data for plugins there is no schema ATM to define extended properties 0171 # texteditingplugin.desktop inlinetextobject.desktop 0172 0173 if (SHOULD_BUILD_DEVEL_HEADERS) 0174 0175 install( 0176 FILES 0177 KoDocumentRdfBase.h 0178 KoInlineObject.h 0179 KoTextEditor.h 0180 KoTextEditingFactory.h 0181 KoTextEditingPlugin.h 0182 KoTextEditingRegistry.h 0183 KoInlineObjectRegistry.h 0184 KoInlineObjectFactoryBase.h 0185 KoBookmark.h 0186 KoBookmarkManager.h 0187 KoAnnotationManager.h 0188 KoInlineTextObjectManager.h 0189 KoAnchorInlineObject.h 0190 KoAnchorTextRange.h 0191 KoTextBlockBorderData.h 0192 KoTextBlockData.h 0193 KoTextDocument.h 0194 KoText.h 0195 KoTextRange.h 0196 KoTextRangeManager.h 0197 KoList.h 0198 KoTextLocator.h 0199 KoTextPage.h 0200 KoTextPaste.h 0201 KoVariable.h 0202 KoVariableManager.h 0203 KoTextRdfCore.h 0204 KoTextInlineRdf.h 0205 KoTextMeta.h 0206 KoTextSoftPageBreak.cpp 0207 KoSection.h 0208 KoSectionEnd.h 0209 KoSectionUtils.h 0210 KoSectionModel.h 0211 KoTextCommandBase.h 0212 KoTextTableTemplate.h 0213 0214 DESTINATION 0215 ${INCLUDE_INSTALL_DIR}/calligra COMPONENT Devel 0216 ) 0217 0218 install( 0219 FILES 0220 styles/KoCharacterStyle.h 0221 styles/KoListLevelProperties.h 0222 styles/KoListStyle.h 0223 styles/KoParagraphStyle.h 0224 styles/KoTableColumnStyle.h 0225 styles/KoTableRowStyle.h 0226 styles/KoTableCellStyle.h 0227 styles/KoSectionStyle.h 0228 styles/KoStyleManager.h 0229 styles/KoTableStyle.h 0230 DESTINATION 0231 ${INCLUDE_INSTALL_DIR}/calligra/styles COMPONENT Devel 0232 ) 0233 0234 install( 0235 FILES 0236 changetracker/KoChangeTracker.h 0237 changetracker/KoChangeTrackerElement.h 0238 changetracker/KoDeletedRowColumnDataStore.h 0239 changetracker/KoDeletedRowData.cpp 0240 changetracker/KoDeletedColumnData.cpp 0241 changetracker/KoDeletedCellData.cpp 0242 DESTINATION 0243 ${INCLUDE_INSTALL_DIR}/calligra/changetracker COMPONENT Devel 0244 ) 0245 0246 endif()