diff options
author | gregory guy <gregory-tde@laposte.net> | 2020-02-25 15:05:47 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-04-10 12:41:25 +0200 |
commit | 2578c13462d6ff5f6da401c62b24c461b3b445ca (patch) | |
tree | 3ca563d8f2606fb5321167858e5d5c6195ddd0ec /file-integration/CMakeLists.txt | |
parent | ef3976a6cb843f51333ea43172306a9c8f4954ef (diff) | |
download | basket-2578c13462d6ff5f6da401c62b24c461b3b445ca.tar.gz basket-2578c13462d6ff5f6da401c62b24c461b3b445ca.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>
Diffstat (limited to 'file-integration/CMakeLists.txt')
-rw-r--r-- | file-integration/CMakeLists.txt | 62 |
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} +) |