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

0001 project(calligracomponentsplugin)
0002 
0003 # TEMPORARY: for  Qt5/KF5 build porting phase deprecation warnings are only annoying noise
0004 if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUC)
0005     add_definitions(-Wno-deprecated -Wno-deprecated-declarations)
0006 endif ()
0007 
0008 set(components_SRCS
0009     CalligraComponentsPlugin.cpp
0010     Document.cpp
0011     Enums.cpp
0012     Global.cpp
0013     ImageDataItem.cpp
0014     LinkArea.cpp
0015     View.cpp
0016     ViewController.cpp
0017 
0018     models/ContentsModel.cpp
0019     models/PresentationContentsModelImpl.cpp
0020     models/SpreadsheetContentsModelImpl.cpp
0021     models/TextContentsModelImpl.cpp
0022 
0023     impl/DocumentImpl.cpp
0024     impl/TextDocumentImpl.cpp
0025     impl/SpreadsheetImpl.cpp
0026     impl/PresentationImpl.cpp
0027     impl/PresentationKoPAView.cpp
0028     impl/ComponentsKoCanvasController.cpp
0029 )
0030 
0031 if(WIN32)
0032 add_library(CalligraComponentsPlugin MODULE ${components_SRCS})
0033 else()
0034 add_library(CalligraComponentsPlugin SHARED ${components_SRCS})
0035 endif()
0036 target_include_directories(CalligraComponentsPlugin
0037     PRIVATE
0038     ${CMAKE_CURRENT_SOURCE_DIR}
0039 )
0040 target_link_libraries( CalligraComponentsPlugin
0041     Qt5::Core
0042     Qt5::Gui
0043     Qt5::Qml
0044     Qt5::Quick
0045     wordsprivate
0046     calligrasheetscommon
0047     calligrastageprivate
0048     kotextlayout
0049     koplugin
0050 )
0051 
0052 install(TARGETS CalligraComponentsPlugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/calligra)
0053 install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/calligra)