summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2024-09-30 00:04:56 +0300
committerMavridis Philippe <mavridisf@gmail.com>2024-09-30 00:16:43 +0300
commit28f28e0af6f7a49a651e28afd3c951c022c58b06 (patch)
tree2dcae47d3464b975c7e48a0f6a7deabaf46ad429 /lib/kofficecore
parenta616663e125e9f6f2966ee85e7b37ebc85eb2967 (diff)
downloadkoffice-feat/cmake-port.tar.gz
koffice-feat/cmake-port.zip
WIP: CMake portfeat/cmake-port
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'lib/kofficecore')
-rw-r--r--lib/kofficecore/CMakeLists.txt87
1 files changed, 87 insertions, 0 deletions
diff --git a/lib/kofficecore/CMakeLists.txt b/lib/kofficecore/CMakeLists.txt
new file mode 100644
index 00000000..c3868bdf
--- /dev/null
+++ b/lib/kofficecore/CMakeLists.txt
@@ -0,0 +1,87 @@
+###############################################################################
+# Trinity KOffice #
+# --------------- #
+# This file is licensed under the terms of GNU GPL v3 or later. #
+# Improvements and feedback are welcome. #
+###############################################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/lib/store
+ ${CMAKE_SOURCE_DIR}/lib/kwmf
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+### Libraries #################################################################
+tde_add_library(kofficecore SHARED AUTOMOC
+ SOURCES
+ KoDocument.cpp KoGlobal.cpp KoUnit.cpp KoFilterManager.cpp
+ KoMainWindow.cpp KoApplication.cpp KoQueryTrader.cpp
+ KoFilter.cpp KoFilterChain.cpp KoDocumentInfo.cpp
+ KoPictureKey.cpp KoPictureBase.cpp KoPicture.cpp KoPictureShared.cpp
+ KoPictureImage.cpp KoPictureClipart.cpp KoPictureCollection.cpp
+ KoPictureEps.cpp KoPictureWmf.cpp
+ KoView.cpp KoFrame.cpp KoContainerHandler.cpp KoDocumentChild.cpp
+ KoDocumentInfoDlg.cpp KoFactory.cpp KoChild.cpp
+ koDocumentInfoAboutWidget.ui koDocumentInfoAuthorWidget.ui
+ koDocumentInfoUserMetadataWidget.ui
+ KoApplicationIface.cpp KoApplicationIface.skel
+ KoDocumentIface.cpp KoDocumentIface.skel KoViewIface.cpp KoViewIface.skel
+ KoMainWindowIface.cpp KoMainWindowIface.skel kofficeversion.cpp
+ KoOasisStyles.cpp KoOasisSettings.cpp KoOasisLoadingContext.cpp
+ KoStyleStack.cpp KoGenStyles.cpp KoPageLayout.cpp
+ KoFileDialog.cpp KoXmlNS.cpp KoDom.cpp Koversiondialog.cpp KoOasisStore.cpp
+ kkbdaccessextensions.cpp koDetailsPaneBase.ui koOpenPaneBase.ui
+ KoOpenPane.cpp KoTemplates.cpp KoDetailsPane.cpp KoSpeaker.cpp KoRect.cpp
+ LINK
+ tdeio-shared tdefx-shared tdeabc-shared tdeprint-shared tdeparts-shared
+ kstore-shared kwmf-shared kowmf-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+tde_add_kpart(kodocinfopropspage SHARED AUTOMOC
+ SOURCES KoDocInfoPropsFactory.cpp
+ LINK tdecore-shared tdeio-shared tdefx-shared kjs-shared kofficecore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+### Headers ###################################################################
+install(
+ FILES
+ KoContainerHandler.h
+ KoFilter.h KoFilterChain.h
+ KoGlobal.h KoUnit.h KoDocument.h
+ KoMainWindow.h
+ KoApplication.h KoQueryTrader.h
+ KoFilterManager.h
+ KoDocumentInfo.h
+ KoView.h KoFrame.h KoDocumentChild.h
+ KoDocumentInfoDlg.h KoFactory.h KoChild.h
+ KoApplicationIface.h KoDocumentIface.h KoViewIface.h KoMainWindowIface.h
+ KoPictureKey.h KoPicture.h KoPictureCollection.h kofficeversion.h
+ KoOasisStyles.h KoStyleStack.h KoGenStyles.h KoOasisSettings.h
+ KoPageLayout.h KoXmlNS.h KoDom.h Koversiondialog.h
+ kkbdaccessextensions.h
+ koffice_export.h KoOpenPane.h
+ KoSpeaker.h KoOasisLoadingContext.h
+ KoPoint.h
+
+ DESTINATION ${INCLUDE_INSTALL_DIR}/KOffice
+)
+
+### Data ######################################################################
+install(FILES koffice_shell.rc DESTINATION ${DATA_INSTALL_DIR}/koffice)
+tde_create_translated_desktop(
+ SOURCE kodocinfopropspage.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR koffice-desktops
+)
+
+# kate: indent-width 2; replace-tabs true; \ No newline at end of file