summaryrefslogtreecommitdiffstats
path: root/mimetypes/inode
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-06-25 13:36:35 +0200
committerSlávek Banko <[email protected]>2020-06-25 13:38:09 +0200
commit3e4279ead3d02c6183681a1bad4c9cd678a5b274 (patch)
treeee00ee8ed0beb2dd1c9431f75979cd208d6ee5b2 /mimetypes/inode
parent6e58b61177b415df6e5dd2508074d2f5722a9b9a (diff)
downloadtdelibs-3e4279ead3d02c6183681a1bad4c9cd678a5b274.tar.gz
tdelibs-3e4279ead3d02c6183681a1bad4c9cd678a5b274.zip
Simplify CMake rules for desktop file translations.
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 42f3a62161d1b0c7047d1edfdcb8af72b7314f1b)
Diffstat (limited to 'mimetypes/inode')
-rw-r--r--mimetypes/inode/CMakeLists.txt11
1 files changed, 4 insertions, 7 deletions
diff --git a/mimetypes/inode/CMakeLists.txt b/mimetypes/inode/CMakeLists.txt
index 3c19fac8b..463c87b69 100644
--- a/mimetypes/inode/CMakeLists.txt
+++ b/mimetypes/inode/CMakeLists.txt
@@ -11,13 +11,10 @@
##### other data ################################
-foreach( _mimetype
+tde_create_translated_desktop(
+ SOURCE
block.desktop chardevice.desktop directory-locked.desktop
directory.desktop fifo.desktop socket.desktop
+ DESTINATION ${MIME_INSTALL_DIR}/inode
+ PO_DIR mimetypes
)
- tde_create_translated_desktop(
- SOURCE ${_mimetype}
- DESTINATION ${MIME_INSTALL_DIR}/inode
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/mimetypes
- )
-endforeach()