diff --git a/components/CMakeLists.txt b/components/CMakeLists.txt index 5929e2f245e..02f6a2d0e84 100644 --- a/components/CMakeLists.txt +++ b/components/CMakeLists.txt @@ -1,53 +1,53 @@ project(calligracomponentsplugin) # TEMPORARY: for Qt5/KF5 build porting phase deprecation warnings are only annoying noise if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUC) add_definitions(-Wno-deprecated -Wno-deprecated-declarations) endif () set(components_SRCS CalligraComponentsPlugin.cpp Document.cpp Enums.cpp Global.cpp ImageDataItem.cpp LinkArea.cpp View.cpp ViewController.cpp models/ContentsModel.cpp models/PresentationContentsModelImpl.cpp models/SpreadsheetContentsModelImpl.cpp models/TextContentsModelImpl.cpp impl/DocumentImpl.cpp impl/TextDocumentImpl.cpp impl/SpreadsheetImpl.cpp impl/PresentationImpl.cpp impl/PresentationKoPAView.cpp impl/ComponentsKoCanvasController.cpp ) if(WIN32) add_library(CalligraComponentsPlugin MODULE ${components_SRCS}) else() add_library(CalligraComponentsPlugin SHARED ${components_SRCS}) endif() target_include_directories(CalligraComponentsPlugin PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ) target_link_libraries( CalligraComponentsPlugin Qt5::Core Qt5::Gui Qt5::Qml Qt5::Quick wordsprivate calligrasheetscommon calligrastageprivate kotextlayout koplugin ) -install(TARGETS CalligraComponentsPlugin DESTINATION ${QML_INSTALL_DIR}/org/kde/calligra) -install(FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kde/calligra) +install(TARGETS CalligraComponentsPlugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/calligra) +install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/calligra)