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

0001 if(Qca-qt5_FOUND)
0002     add_definitions( -DHAVE_QCA2 )
0003 endif()
0004 
0005 # TEMPORARY: for std::auto_ptr deprecation warnings are only annoying noise
0006 if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUC)
0007     add_definitions(-Wno-deprecated-declarations)
0008 endif ()
0009 
0010 include_directories(
0011     ${KOMAIN_INCLUDES}
0012     ${KOODF2_INCLUDES} # For charts
0013     ${CMAKE_CURRENT_SOURCE_DIRECTORY}
0014     ${CMAKE_SOURCE_DIR}/filters/libmso # For NumberFormatParser
0015     ${CMAKE_SOURCE_DIR}/filters/sheets/xlsx # For ChartExport  FIXME: Remove when moved to libodf2
0016 )
0017 
0018 ########### next target ###############
0019 
0020 set(msooxml_LIB_SRCS
0021     MsooXmlDebug.cpp
0022     MsooXmlGlobal.cpp
0023     MsooXmlUtils.cpp
0024     MsooXmlReader.cpp
0025     MsooXmlCommonReader.cpp
0026     MsooXmlThemesReader.cpp
0027     MsooXmlRelationshipsReader.cpp
0028     MsooXmlRelationships.cpp
0029     MsooXmlImport.cpp
0030     MsooXmlDocPropertiesReader.cpp
0031     MsooXmlDiagramReader.cpp
0032     MsooXmlDiagramReader_p.cpp
0033     ooxml_pole.cpp
0034     MsooXmlDrawingTableStyleReader.cpp
0035     MsooXmlDrawingTableStyle.cpp
0036     MsooXmlTableStyle.cpp
0037     VmlDrawingReader.cpp
0038     PredefinedShapeHelper.cpp
0039     ComplexShapeHandler.cpp
0040     ${CMAKE_SOURCE_DIR}/filters/sheets/xlsx/XlsxChartOdfWriter.cpp
0041     # TODO: move back to kolibs
0042     KoOdfExporter.cpp
0043 )
0044 
0045 add_library(komsooxml SHARED ${msooxml_LIB_SRCS})
0046 generate_export_header(komsooxml BASE_NAME komsooxml)
0047 
0048 target_link_libraries(komsooxml
0049     PUBLIC
0050         mso
0051         koodf2
0052         komain
0053     PRIVATE
0054         KF5::Archive
0055     )
0056 if(Qca-qt5_FOUND)
0057    target_link_libraries(komsooxml PRIVATE qca-qt5)
0058 endif()
0059 
0060 set_target_properties(komsooxml PROPERTIES VERSION ${GENERIC_CALLIGRA_LIB_VERSION} SOVERSION ${GENERIC_CALLIGRA_LIB_SOVERSION} )
0061 install(TARGETS komsooxml ${INSTALL_TARGETS_DEFAULT_ARGS})
0062 
0063 if (FALSE) # these headers are private for now
0064 install( FILES
0065     ${CMAKE_CURRENT_BINARY_DIR}/komsooxml_export.h
0066     MsooXmlContentTypes.h
0067     MsooXmlReader.h
0068     MsooXmlReader_p.h
0069     MsooXmlCommonReaderImpl.h
0070     MsooXmlCommonReader.h
0071     MsooXmlCommonReaderMethods.h
0072     MsooXmlSchemas.h
0073     MsooXmlThemesReader.h
0074     MsooXmlTheme.h
0075     MsooXmlUtils.h
0076     MsooXmlRelationships.h
0077     MsooXmlImport.h
0078     MsooXmlCommentsReader.h
0079     MsooXmlDocPropertiesReader.h
0080     MsooXmlNotesReader.h
0081     MsooXmlDiagramReader.h
0082     MsooXmlDiagramReader_p.h
0083     MsooXmlDrawingTableStyleReader.h
0084     MsooXmlDrawingTableStyle.h
0085     MsooXmlDrawingMLShared.h
0086     MsooXmlDrawingMLSharedImpl.h
0087     VmlDrawingReader.h
0088     ComplexShapeHandler.h
0089     PredefinedShapeHelper.h
0090     DESTINATION ${INCLUDE_INSTALL_DIR}/msooxml COMPONENT Devel
0091 )
0092 endif ()