summaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/CMakeLists.txt61
1 files changed, 61 insertions, 0 deletions
diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt
new file mode 100644
index 000000000..c463bcd4a
--- /dev/null
+++ b/example/CMakeLists.txt
@@ -0,0 +1,61 @@
+###############################################################################
+# 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_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+### Libraries #################################################################
+tde_add_kpart(libexamplepart SHARED AUTOMOC
+ SOURCES example_part.cpp example_view.cpp example_factory.cpp
+ LINK kofficeui-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+### Programs ##################################################################
+tde_add_tdeinit_executable(example AUTOMOC
+ SOURCES main.cpp
+ LINK kofficeui-shared
+)
+
+### Data ######################################################################
+install(
+ FILES example.rc example_readonly.rc
+ DESTINATION ${DATA_INSTALL_DIR}/example
+)
+
+tde_create_translated_desktop(
+ SOURCE example.desktop
+ PO_DIR koffice-desktops
+)
+
+tde_create_translated_desktop(
+ SOURCE examplepart.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR koffice-desktops
+)
+
+tde_create_translated_desktop(
+ SOURCE x-vnd.kde.example.desktop
+ DESTINATION ${MIME_INSTALL_DIR}/application
+ PO_DIR koffice-desktops
+)
+
+# kate: indent-width 2; replace-tabs true; \ No newline at end of file