summaryrefslogtreecommitdiffstats
path: root/kolf/courses
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-07-09 03:36:23 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-07-09 03:36:23 +0200
commitb21981e7e3134727c651ee6a0f7865396cd1d415 (patch)
tree1857f4738933e15925c94664cbfbf1d6e6ce5f9b /kolf/courses
parent9a386f1630a7556a8aca9cf4bf09723dc5c0eb15 (diff)
downloadtdegames-b21981e7e3134727c651ee6a0f7865396cd1d415.tar.gz
tdegames-b21981e7e3134727c651ee6a0f7865396cd1d415.zip
Simplify CMake rules for desktop file translations.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kolf/courses')
-rw-r--r--kolf/courses/CMakeLists.txt14
1 files changed, 6 insertions, 8 deletions
diff --git a/kolf/courses/CMakeLists.txt b/kolf/courses/CMakeLists.txt
index ac4a494e..f5ccfcea 100644
--- a/kolf/courses/CMakeLists.txt
+++ b/kolf/courses/CMakeLists.txt
@@ -1,11 +1,9 @@
# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer
-foreach( _course Classic.kolf Hard.kolf Medium.kolf Easy.kolf
- ReallyEasy Practice Impossible USApro
+tde_create_translated_desktop(
+ SOURCE
+ Classic.kolf Hard.kolf Medium.kolf Easy.kolf
+ ReallyEasy Practice Impossible USApro
+ DESTINATION ${DATA_INSTALL_DIR}/kolf/courses
+ PO_DIR ${CMAKE_SOURCE_DIR}translations/desktop_files/kolf-courses
)
- tde_create_translated_desktop(
- SOURCE ${_course}
- DESTINATION ${DATA_INSTALL_DIR}/kolf/courses
- PO_DIR ${CMAKE_SOURCE_DIR}translations/desktop_files/kolf-courses
- )
-endforeach()