From 33c97fa091a67fbfcaae19b388c56a931bfca72a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 10 Jul 2020 03:24:07 +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 --- extras/shutdown/CMakeLists.txt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'extras/shutdown') 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 +) -- cgit v1.2.1