summaryrefslogtreecommitdiffstats
path: root/file-integration
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2020-02-25 15:05:47 +0100
committerSlávek Banko <slavek.banko@axis.cz>2020-04-10 12:47:23 +0200
commitce133b3eda6bddc2750800d1bb76cf3c5a947daf (patch)
treee0f684a1d9d2f50918124dd0c163eaa1d8aba621 /file-integration
parentb51e232350d31b65a8cd055693c7869f0a896193 (diff)
downloadbasket-ce133b3eda6bddc2750800d1bb76cf3c5a947daf.tar.gz
basket-ce133b3eda6bddc2750800d1bb76cf3c5a947daf.zip
Conversion to the cmake building system.
Signed-off-by: gregory guy <gregory-tde@laposte.net> Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 2578c13462d6ff5f6da401c62b24c461b3b445ca)
Diffstat (limited to 'file-integration')
-rw-r--r--file-integration/CMakeLists.txt62
1 files changed, 62 insertions, 0 deletions
diff --git a/file-integration/CMakeLists.txt b/file-integration/CMakeLists.txt
new file mode 100644
index 0000000..1e3acb4
--- /dev/null
+++ b/file-integration/CMakeLists.txt
@@ -0,0 +1,62 @@
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### basketthumbcreator (kpart)
+
+tde_add_kpart( basketthumbcreator MODULE AUTOMOC
+
+ SOURCES
+ basketthumbcreator.cpp
+ LINK
+ tdecore-shared
+ tdeui-shared
+ tdeio-shared
+ kjs-shared
+
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### icons
+
+tde_install_icons()
+
+
+##### other data
+
+add_custom_command(
+ OUTPUT basket.magic.mgc
+ COMMAND ${FILE_EXECUTABLE} -C -m ${CMAKE_CURRENT_SOURCE_DIR}/basket.magic
+)
+
+add_custom_target(
+ basket_magic_mgc
+ ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/basket.magic.mgc
+)
+
+install(
+ FILES basket.magic ${CMAKE_CURRENT_BINARY_DIR}/basket.magic.mgc
+ DESTINATION ${CONFIG_INSTALL_DIR}/magic
+)
+
+install(
+ FILES x-basket-archive.desktop x-basket-template.desktop
+ DESTINATION ${MIME_INSTALL_DIR}/application
+)
+
+install(
+ FILES basketthumbcreator.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+)