summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-07-09 03:36:23 +0200
committerSlávek Banko <[email protected]>2020-07-09 03:36:23 +0200
commitb21981e7e3134727c651ee6a0f7865396cd1d415 (patch)
tree1857f4738933e15925c94664cbfbf1d6e6ce5f9b
parent9a386f1630a7556a8aca9cf4bf09723dc5c0eb15 (diff)
downloadtdegames-b21981e7e3134727c651ee6a0f7865396cd1d415.tar.gz
tdegames-b21981e7e3134727c651ee6a0f7865396cd1d415.zip
Simplify CMake rules for desktop file translations.
Signed-off-by: Slávek Banko <[email protected]>
-rw-r--r--atlantik/CMakeLists.txt2
-rw-r--r--kbackgammon/CMakeLists.txt2
-rw-r--r--kbattleship/kbattleship/CMakeLists.txt2
-rw-r--r--kfouleggs/CMakeLists.txt2
-rw-r--r--klickety/CMakeLists.txt2
-rw-r--r--kmines/data/CMakeLists.txt2
-rw-r--r--knetwalk/src/CMakeLists.txt2
-rw-r--r--kolf/CMakeLists.txt26
-rw-r--r--kolf/courses/CMakeLists.txt14
-rw-r--r--kreversi/sounds/CMakeLists.txt2
-rw-r--r--ksame/CMakeLists.txt2
-rw-r--r--ksirtet/ksirtet/CMakeLists.txt2
-rw-r--r--ktuberling/CMakeLists.txt4
-rw-r--r--libtdegames/carddecks/CMakeLists.txt2
14 files changed, 30 insertions, 36 deletions
diff --git a/atlantik/CMakeLists.txt b/atlantik/CMakeLists.txt
index 310b389b..25b0fdec 100644
--- a/atlantik/CMakeLists.txt
+++ b/atlantik/CMakeLists.txt
@@ -15,7 +15,7 @@ tde_create_translated_desktop( atlantik.desktop )
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/atlantik
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/atlantik-eventsrc
+ PO_DIR atlantik-eventsrc
)
install(
diff --git a/kbackgammon/CMakeLists.txt b/kbackgammon/CMakeLists.txt
index 5f66ebd3..80907e60 100644
--- a/kbackgammon/CMakeLists.txt
+++ b/kbackgammon/CMakeLists.txt
@@ -46,7 +46,7 @@ tde_create_translated_desktop( kbackgammon.desktop )
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/kbackgammon
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kbackgammon-eventsrc
+ PO_DIR kbackgammon-eventsrc
)
install(
diff --git a/kbattleship/kbattleship/CMakeLists.txt b/kbattleship/kbattleship/CMakeLists.txt
index 2074501e..6b84b458 100644
--- a/kbattleship/kbattleship/CMakeLists.txt
+++ b/kbattleship/kbattleship/CMakeLists.txt
@@ -54,7 +54,7 @@ install(
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/kbattleship
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kbattleship-eventsrc
+ PO_DIR kbattleship-eventsrc
)
tde_create_translated_desktop( kbattleship.desktop )
diff --git a/kfouleggs/CMakeLists.txt b/kfouleggs/CMakeLists.txt
index 3cbc9ca7..bacbb519 100644
--- a/kfouleggs/CMakeLists.txt
+++ b/kfouleggs/CMakeLists.txt
@@ -51,7 +51,7 @@ install( FILES kfouleggs.kcfg
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/kfouleggs
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kfouleggs-eventsrc
+ PO_DIR kfouleggs-eventsrc
)
tde_create_translated_desktop( kfouleggs.desktop )
diff --git a/klickety/CMakeLists.txt b/klickety/CMakeLists.txt
index 9aff54ae..c978984a 100644
--- a/klickety/CMakeLists.txt
+++ b/klickety/CMakeLists.txt
@@ -41,7 +41,7 @@ tde_add_executable( klickety AUTOMOC
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/klickety
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/klickety-eventsrc
+ PO_DIR klickety-eventsrc
)
install( FILES klicketyui.rc
diff --git a/kmines/data/CMakeLists.txt b/kmines/data/CMakeLists.txt
index 49c51090..92f3e5c7 100644
--- a/kmines/data/CMakeLists.txt
+++ b/kmines/data/CMakeLists.txt
@@ -10,5 +10,5 @@ tde_create_translated_desktop( kmines.desktop )
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/kmines
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kmines-eventsrc
+ PO_DIR kmines-eventsrc
)
diff --git a/knetwalk/src/CMakeLists.txt b/knetwalk/src/CMakeLists.txt
index 76f7cccb..7d3addc6 100644
--- a/knetwalk/src/CMakeLists.txt
+++ b/knetwalk/src/CMakeLists.txt
@@ -32,7 +32,7 @@ tde_add_executable( knetwalk AUTOMOC
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/knetwalk
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/knetwalk-eventsrc
+ PO_DIR knetwalk-eventsrc
)
tde_create_translated_desktop( knetwalk.desktop )
diff --git a/kolf/CMakeLists.txt b/kolf/CMakeLists.txt
index ce80c874..2b5df507 100644
--- a/kolf/CMakeLists.txt
+++ b/kolf/CMakeLists.txt
@@ -68,13 +68,11 @@ add_custom_command ( OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/kolf.magic.mgc"
add_custom_target( kolf-magic-mgc ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/kolf.magic.mgc" )
-foreach( _mimetype x-kourse.desktop x-kolf.desktop )
- tde_create_translated_desktop(
- SOURCE ${_mimetype}
- DESTINATION ${MIME_INSTALL_DIR}/application
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kolf-desktops
- )
-endforeach()
+tde_create_translated_desktop(
+ SOURCE x-kourse.desktop x-kolf.desktop
+ DESTINATION ${MIME_INSTALL_DIR}/application
+ PO_DIR kolf-desktops
+)
install( FILES kolf.magic "${CMAKE_CURRENT_BINARY_DIR}/kolf.magic.mgc"
DESTINATION ${CONFIG_INSTALL_DIR}/magic
@@ -82,16 +80,14 @@ install( FILES kolf.magic "${CMAKE_CURRENT_BINARY_DIR}/kolf.magic.mgc"
tde_create_translated_desktop(
SOURCE kolf.desktop
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kolf-desktops
+ PO_DIR kolf-desktops
)
-foreach( _course intro tutorial.kolf )
- tde_create_translated_desktop(
- SOURCE ${_course}
- DESTINATION ${DATA_INSTALL_DIR}/kolf
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kolf-courses
- )
-endforeach()
+tde_create_translated_desktop(
+ SOURCE intro tutorial.kolf
+ DESTINATION ${DATA_INSTALL_DIR}/kolf
+ PO_DIR kolf-courses
+)
install( FILES kolfui.rc tutorial.kolfgame
DESTINATION ${DATA_INSTALL_DIR}/kolf
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()
diff --git a/kreversi/sounds/CMakeLists.txt b/kreversi/sounds/CMakeLists.txt
index 66c7be28..c3018fee 100644
--- a/kreversi/sounds/CMakeLists.txt
+++ b/kreversi/sounds/CMakeLists.txt
@@ -3,7 +3,7 @@
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/kreversi
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kreversi-eventsrc
+ PO_DIR kreversi-eventsrc
)
install( FILES reversi-click.wav reversi-won.wav
diff --git a/ksame/CMakeLists.txt b/ksame/CMakeLists.txt
index 529e33c8..904eba9a 100644
--- a/ksame/CMakeLists.txt
+++ b/ksame/CMakeLists.txt
@@ -38,7 +38,7 @@ install(
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/ksame
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ksame-eventsrc
+ PO_DIR ksame-eventsrc
)
tde_create_translated_desktop( ksame.desktop )
diff --git a/ksirtet/ksirtet/CMakeLists.txt b/ksirtet/ksirtet/CMakeLists.txt
index ccf54a9a..63cffe43 100644
--- a/ksirtet/ksirtet/CMakeLists.txt
+++ b/ksirtet/ksirtet/CMakeLists.txt
@@ -70,5 +70,5 @@ install( FILES ksirtet.kcfg
tde_create_translated_desktop(
SOURCE eventsrc
DESTINATION ${DATA_INSTALL_DIR}/ksirtet
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ksirtet-eventsrc
+ PO_DIR ksirtet-eventsrc
)
diff --git a/ktuberling/CMakeLists.txt b/ktuberling/CMakeLists.txt
index 5fdf5025..79b890bd 100644
--- a/ktuberling/CMakeLists.txt
+++ b/ktuberling/CMakeLists.txt
@@ -39,12 +39,12 @@ tde_install_icons( ktuberling )
tde_create_translated_desktop(
SOURCE x-tuberling.desktop
DESTINATION ${MIME_INSTALL_DIR}/application
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ktuberling-desktops
+ PO_DIR ktuberling-desktops
)
tde_create_translated_desktop(
SOURCE ktuberling.desktop
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/ktuberling-desktops
+ PO_DIR ktuberling-desktops
)
install( FILES ktuberlingui.rc
diff --git a/libtdegames/carddecks/CMakeLists.txt b/libtdegames/carddecks/CMakeLists.txt
index 6b1bb7fb..6dc06d65 100644
--- a/libtdegames/carddecks/CMakeLists.txt
+++ b/libtdegames/carddecks/CMakeLists.txt
@@ -25,6 +25,6 @@ foreach( _desktop IN LISTS _desktops )
tde_create_translated_desktop(
SOURCE ${_desktop}
DESTINATION ${DATA_INSTALL_DIR}/carddecks/${_theme}
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/libtdegames-carddecks
+ PO_DIR libtdegames-carddecks
)
endforeach()