From 57d55cfe629741a0c7b4f5d83792ae8546a17cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 8 Jul 2020 01:19:10 +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 --- kaboodle/CMakeLists.txt | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'kaboodle') diff --git a/kaboodle/CMakeLists.txt b/kaboodle/CMakeLists.txt index fc28aed6..85cb017b 100644 --- a/kaboodle/CMakeLists.txt +++ b/kaboodle/CMakeLists.txt @@ -75,7 +75,7 @@ tde_add_executable( kaboodle AUTOMOC tde_create_translated_desktop( SOURCE kaboodle.desktop - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kaboodle-desktops + PO_DIR kaboodle-desktops ) install( @@ -83,10 +83,8 @@ install( DESTINATION ${DATA_INSTALL_DIR}/kaboodle ) -foreach( _service kaboodle_component.desktop kaboodleengine.desktop ) - tde_create_translated_desktop( - SOURCE ${_service} - DESTINATION ${SERVICES_INSTALL_DIR} - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kaboodle-desktops - ) -endforeach() +tde_create_translated_desktop( + SOURCE kaboodle_component.desktop kaboodleengine.desktop + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR kaboodle-desktops +) -- cgit v1.2.1