From 8ed082c175b6020e96710c185df8eaaee6c25551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 10 Jul 2020 03:27:17 +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 --- src/CMakeLists.txt | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7d9cf9e..0e04565 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -37,21 +37,15 @@ tde_add_kpart( tdeio_apt MODULE AUTOMOC ##### other data -foreach( _protocol apt.protocol apt+http.protocol ) - tde_create_translated_desktop( - SOURCE ${_protocol} +tde_create_translated_desktop( + SOURCE apt.protocol apt+http.protocol DESTINATION ${SERVICES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files - ) -endforeach( ) +) -foreach( _desktop apt-file.desktop apt-files.desktop apt-search.desktop ) - tde_create_translated_desktop( - SOURCE ${_desktop} +tde_create_translated_desktop( + SOURCE apt-file.desktop apt-files.desktop apt-search.desktop DESTINATION ${SERVICES_INSTALL_DIR}/searchproviders - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files - ) -endforeach( ) +) install( FILES tdeio_apt.css tdedeb_logo.png -- cgit v1.2.1