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

0001 #add_subdirectory( tests )
0002 
0003 include_directories(${KOODF_INCLUDES}
0004                     ${KOODF2_INCLUDES}
0005 
0006                     # FIXME: This should not be here. Make sure that the chart
0007                     #        classes parse the number formats while loading,
0008                     #        and not just store the unparsed format strings to
0009                     #        be parsed during saving.
0010                     ${CMAKE_SOURCE_DIR}/filters/libmso  # for NumberFormatParser
0011 )
0012 
0013 ########### libkoodf2 ###############
0014 
0015 set(koodf2_LIB_SRCS
0016     Odf2Debug.cpp
0017 
0018     # Storage objects, using old DOM based loading
0019     KoXmlStreamReader.cpp
0020     KoXmlUtils.cpp
0021 
0022     KoTable.cpp
0023     KoRow.cpp
0024     KoColumn.cpp
0025     KoCell.cpp
0026     KoCellValue.cpp
0027     KoDummyCellValue.cpp
0028     KoCellChild.cpp
0029     KoRawCellChild.cpp
0030 
0031     # Style objects, using old DOM based loading
0032     KoStyle.cpp
0033     KoTblStyle.cpp
0034     KoRowStyle.cpp
0035     KoColumnStyle.cpp
0036     KoCellStyle.cpp
0037 
0038     # Style objects, using newer stream based loading
0039     KoOdfStyleBase.cpp
0040     KoOdfStyleManager.cpp
0041     KoOdfStyle.cpp
0042     KoOdfListStyle.cpp
0043     KoOdfPageLayout.cpp
0044     KoOdfStyleProperties.cpp
0045     KoOdfTextProperties.cpp
0046     KoOdfParagraphProperties.cpp
0047     KoOdfListLevelProperties.cpp
0048     KoOdfGraphicProperties.cpp
0049     KoOdfPageLayoutProperties.cpp
0050     KoOdfHeaderFooterProperties.cpp
0051 
0052     chart/KoOdfChartWriter.cpp
0053 )
0054 
0055 add_library(koodf2 SHARED ${koodf2_LIB_SRCS})
0056 generate_export_header(koodf2 BASE_NAME koodf2)
0057 
0058 target_link_libraries(koodf2
0059     PUBLIC
0060         koodf
0061     PRIVATE
0062         mso
0063 )
0064 
0065 set_target_properties(koodf2 PROPERTIES
0066     VERSION ${GENERIC_CALLIGRA_LIB_VERSION} SOVERSION ${GENERIC_CALLIGRA_LIB_SOVERSION}
0067 )
0068 install(TARGETS koodf2 ${INSTALL_TARGETS_DEFAULT_ARGS} )
0069 
0070 
0071 if (SHOULD_BUILD_DEVEL_HEADERS)
0072 
0073 install( FILES
0074     ${CMAKE_CURRENT_BINARY_DIR}/koodf2_export.h
0075 
0076     KoStyle.h
0077     KoTable.h
0078     KoTblStyle.h
0079     KoColumn.h
0080     KoColumnStyle.h
0081     KoRawCellChild.h
0082     KoRow.h
0083     KoRowStyle.h
0084     KoCell.h
0085     KoCellStyle.h
0086 
0087     KoOdfStyleBase.h
0088     KoOdfStyleManager.h
0089     KoOdfStyle.h
0090     KoOdfStyleProperties.h
0091     KoOdfTextProperties.h
0092     KoOdfParagraphProperties.h
0093     KoOdfGraphicProperties.h
0094     KoOdfPageLayoutProperties.h
0095     KoOdfHeaderFooterProperties.h
0096 
0097     chart/Charting.h
0098     chart/KoOdfChartWriter.h
0099 
0100 DESTINATION ${INCLUDE_INSTALL_DIR}/calligra COMPONENT Devel)
0101 
0102 endif()