summaryrefslogtreecommitdiffstats
path: root/kformula
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 /kformula
parenta616663e125e9f6f2966ee85e7b37ebc85eb2967 (diff)
downloadkoffice-28f28e0af6f7a49a651e28afd3c951c022c58b06.tar.gz
koffice-28f28e0af6f7a49a651e28afd3c951c022c58b06.zip
WIP: CMake portfeat/cmake-port
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'kformula')
-rw-r--r--kformula/CMakeLists.txt64
-rw-r--r--kformula/pics/CMakeLists.txt11
2 files changed, 75 insertions, 0 deletions
diff --git a/kformula/CMakeLists.txt b/kformula/CMakeLists.txt
new file mode 100644
index 00000000..9c456783
--- /dev/null
+++ b/kformula/CMakeLists.txt
@@ -0,0 +1,64 @@
+###############################################################################
+# 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/kofficecore
+ ${CMAKE_SOURCE_DIR}/lib/kofficeui
+ ${CMAKE_SOURCE_DIR}/lib/store
+ ${CMAKE_SOURCE_DIR}/lib/kwmf
+ ${CMAKE_SOURCE_DIR}/lib/kopalette
+ ${CMAKE_SOURCE_DIR}/lib/kformula
+ ${CMAKE_SOURCE_DIR}/lib/kotext
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+### Libraries #################################################################
+tde_add_kpart(libkformulapart SHARED AUTOMOC
+ SOURCES
+ kfconfig.cpp kformula_doc.cpp kformula_view.cpp kformula_factory.cpp
+ kformulawidget.cpp kformula_view_iface.skel kformula_view_iface.cpp
+ formulastring.cpp fsparser.cpp
+ LINK
+ tdecore-shared tdeui-shared tdefx-shared tdeio-shared tdeparts-shared
+ kofficeui-shared kotext-shared kformulalib-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+### Programs ##################################################################
+tde_add_tdeinit_executable(kformula AUTOMOC
+ SOURCES main.cpp
+ LINK kofficecore-shared
+)
+
+### Data ######################################################################
+install(
+ FILES kformula.rc kformula_readonly.rc tips
+ DESTINATION ${DATA_INSTALL_DIR}/kformula
+)
+
+tde_create_translated_desktop(
+ SOURCE kformula.desktop
+ PO_DIR koffice-desktops
+)
+
+tde_create_translated_desktop(
+ SOURCE kformulapart.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR koffice-desktops
+)
+
+add_subdirectory(pics)
+
+# kate: indent-width 2; replace-tabs true; \ No newline at end of file
diff --git a/kformula/pics/CMakeLists.txt b/kformula/pics/CMakeLists.txt
new file mode 100644
index 00000000..f3304540
--- /dev/null
+++ b/kformula/pics/CMakeLists.txt
@@ -0,0 +1,11 @@
+###############################################################################
+# Trinity KOffice #
+# --------------- #
+# This file is licensed under the terms of GNU GPL v3 or later. #
+# Improvements and feedback are welcome. #
+###############################################################################
+
+### Data ######################################################################
+tde_install_icons()
+
+# kate: indent-width 2; replace-tabs true; \ No newline at end of file