From 3e4279ead3d02c6183681a1bad4c9cd678a5b274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 25 Jun 2020 13:36:35 +0200 Subject: Simplify CMake rules for desktop file translations. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 42f3a62161d1b0c7047d1edfdcb8af72b7314f1b) --- tderesources/CMakeLists.txt | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'tderesources/CMakeLists.txt') diff --git a/tderesources/CMakeLists.txt b/tderesources/CMakeLists.txt index d3f9c5f30..32bde2f7f 100644 --- a/tderesources/CMakeLists.txt +++ b/tderesources/CMakeLists.txt @@ -38,17 +38,15 @@ install( FILES ##### other data ################################ -foreach( _desktop tderesources_plugin.desktop tderesources_manager.desktop ) - tde_create_translated_desktop( - SOURCE ${_desktop} - DESTINATION ${SERVICETYPES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tderesources-desktops - ) -endforeach() +tde_create_translated_desktop( + SOURCE tderesources_plugin.desktop tderesources_manager.desktop + DESTINATION ${SERVICETYPES_INSTALL_DIR} + PO_DIR tderesources-desktops +) tde_create_translated_desktop( SOURCE tderesources.desktop - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tderesources-desktops + PO_DIR tderesources-desktops ) -- cgit v1.2.1