summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-07-10 03:24:07 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-07-10 03:24:07 +0200
commit33c97fa091a67fbfcaae19b388c56a931bfca72a (patch)
tree6d74d9f90f36bfa3cb4206e5d6ddfa44915785a1
parenta3f22d8e5baa497d3d5d4c02bce0bce7fbf1e9a0 (diff)
downloadkshutdown-33c97fa091a67fbfcaae19b388c56a931bfca72a.tar.gz
kshutdown-33c97fa091a67fbfcaae19b388c56a931bfca72a.zip
Simplify CMake rules for desktop file translations.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--extras/CMakeLists.txt12
-rw-r--r--extras/multimedia/CMakeLists.txt12
-rw-r--r--extras/shutdown/CMakeLists.txt12
-rw-r--r--extras/system/CMakeLists.txt12
-rw-r--r--kshutdownlockout/CMakeLists.txt2
5 files changed, 21 insertions, 29 deletions
diff --git a/extras/CMakeLists.txt b/extras/CMakeLists.txt
index 848ccff..fa8953c 100644
--- a/extras/CMakeLists.txt
+++ b/extras/CMakeLists.txt
@@ -1,11 +1,9 @@
file( GLOB _files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} .directory *.desktop )
-foreach( _source ${_files} )
- tde_create_translated_desktop(
- SOURCE ${_source}
- DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/extras
- )
-endforeach()
+tde_create_translated_desktop(
+ SOURCE ${_files}
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras
+ PO_DIR extras
+)
tde_auto_add_subdirectories( )
diff --git a/extras/multimedia/CMakeLists.txt b/extras/multimedia/CMakeLists.txt
index af70620..a7594e8 100644
--- a/extras/multimedia/CMakeLists.txt
+++ b/extras/multimedia/CMakeLists.txt
@@ -1,9 +1,7 @@
file( GLOB _files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} .directory *.desktop )
-foreach( _source ${_files} )
- tde_create_translated_desktop(
- SOURCE ${_source}
- DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/multimedia
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/extras
- )
-endforeach()
+tde_create_translated_desktop(
+ SOURCE ${_files}
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/multimedia
+ PO_DIR extras
+)
diff --git a/extras/shutdown/CMakeLists.txt b/extras/shutdown/CMakeLists.txt
index 68be21c..e76cfe3 100644
--- a/extras/shutdown/CMakeLists.txt
+++ b/extras/shutdown/CMakeLists.txt
@@ -1,9 +1,7 @@
file( GLOB _files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} .directory *.desktop )
-foreach( _source ${_files} )
- tde_create_translated_desktop(
- SOURCE ${_source}
- DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/shutdown
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/extras
- )
-endforeach()
+tde_create_translated_desktop(
+ SOURCE ${_files}
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/shutdown
+ PO_DIR extras
+)
diff --git a/extras/system/CMakeLists.txt b/extras/system/CMakeLists.txt
index a2d7e6d..31c40ed 100644
--- a/extras/system/CMakeLists.txt
+++ b/extras/system/CMakeLists.txt
@@ -1,9 +1,7 @@
file( GLOB _files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} .directory *.desktop )
-foreach( _source ${_files} )
- tde_create_translated_desktop(
- SOURCE ${_source}
- DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/system
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/extras
- )
-endforeach()
+tde_create_translated_desktop(
+ SOURCE ${_files}
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/system
+ PO_DIR extras
+)
diff --git a/kshutdownlockout/CMakeLists.txt b/kshutdownlockout/CMakeLists.txt
index 914b3f6..db81564 100644
--- a/kshutdownlockout/CMakeLists.txt
+++ b/kshutdownlockout/CMakeLists.txt
@@ -32,5 +32,5 @@ tde_add_kpart( kshutdownlockout_panelapplet AUTOMOC
tde_create_translated_desktop(
SOURCE kshutdownlockout.desktop
DESTINATION ${DATA_INSTALL_DIR}/kicker/applets
- PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/${PROJECT_NAME}.desktop
+ PO_DIR ${PROJECT_NAME}.desktop
)