summaryrefslogtreecommitdiffstats
path: root/data/CMakeLists.txt
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2022-08-26 03:05:03 +0200
committerSlávek Banko <slavek.banko@axis.cz>2022-08-26 09:17:11 +0200
commit527afc1d703419f51426ec5b88516bb4d0d1e59d (patch)
treeb84f148b52d901b2ece88dc86bbeedad5eeda93d /data/CMakeLists.txt
parent4c70ef18252c857eeec8968550312ff6876943b5 (diff)
downloadrosegarden-527afc1d.tar.gz
rosegarden-527afc1d.zip
Copy translations to a new directory layout.
Use common rules for build and install translations. Added translation of .desktop files. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 83648e7c87acbc90dc234486eacc7df8bab7d2bf)
Diffstat (limited to 'data/CMakeLists.txt')
-rw-r--r--data/CMakeLists.txt11
1 files changed, 7 insertions, 4 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index df30c23..41d02ef 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -10,15 +10,18 @@ FILE(GLOB CHORD_FILES chords/*.xml)
INSTALL(FILES ${CHORD_FILES} DESTINATION ${DATADIR}/chords)
# Desktop file
-INSTALL(FILES desktop/rosegarden.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
+tde_create_translated_desktop( desktop/rosegarden.desktop )
# MIME files
-SET(MIME_FILES
+tde_create_translated_desktop(
+ SOURCE
desktop/x-rosegarden21.desktop
desktop/x-rosegarden.desktop
desktop/x-rosegarden-device.desktop
- desktop/x-soundfont.desktop)
-INSTALL(FILES ${MIME_FILES} DESTINATION ${MIMEDIR})
+ desktop/x-soundfont.desktop
+
+ DESTINATION ${MIMEDIR}
+)
# Icons
INSTALL(FILES pixmaps/icons/cc-hi16-rosegarden.xpm DESTINATION ${ICONDIR}/locolor/16x16/apps RENAME rosegarden.xpm)