summaryrefslogtreecommitdiffstats
path: root/tdescreensaver/xsavers/CMakeLists.txt
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-06-11 14:54:26 +0200
committerSlávek Banko <[email protected]>2020-06-12 15:24:51 +0200
commitc6babe2180543ce656d7c517d6db047285295597 (patch)
tree90bf7fd65cc790d7ea5fb306fc9a6f5a56cc12c9 /tdescreensaver/xsavers/CMakeLists.txt
parent95331e2c05fce1a8abe31b62f77a4f1d72ca1fd3 (diff)
downloadtdeartwork-c6babe2180543ce656d7c517d6db047285295597.tar.gz
tdeartwork-c6babe2180543ce656d7c517d6db047285295597.zip
Desktop file translations:
+ Creation of POT template for desktop files added to CMakeL10n rules. + Added creation of translated desktop files during build. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 7c7c238be19c9d17b1182d0b0fad31479aa7f59a)
Diffstat (limited to 'tdescreensaver/xsavers/CMakeLists.txt')
-rw-r--r--tdescreensaver/xsavers/CMakeLists.txt18
1 files changed, 12 insertions, 6 deletions
diff --git a/tdescreensaver/xsavers/CMakeLists.txt b/tdescreensaver/xsavers/CMakeLists.txt
index e636ac18..929159c1 100644
--- a/tdescreensaver/xsavers/CMakeLists.txt
+++ b/tdescreensaver/xsavers/CMakeLists.txt
@@ -33,7 +33,11 @@ tde_add_executable( kswarm.kss AUTOMOC
DESTINATION ${BIN_INSTALL_DIR}
)
-install( FILES KSwarm.desktop DESTINATION ${APPS_INSTALL_DIR}/System/ScreenSavers )
+tde_create_translated_desktop(
+ SOURCE KSwarm.desktop
+ DESTINATION ${APPS_INSTALL_DIR}/System/ScreenSavers
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdescreensaver-desktops
+)
##### kswarm #################################
@@ -42,11 +46,13 @@ if( WITH_OPENGL )
link_directories( ${OPENGL_LIBRARY_DIRS} )
tde_add_executable( kspace.kss AUTOMOC
SOURCES space.cpp ${BASE_SRCS} ${XL_SRCS}
- LINK tdeui-shared ${OPENGL_LIBRARIES}
+ LINK tdeui-shared ${OPENGL_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}
)
-
- install( FILES KSpace.desktop DESTINATION ${APPS_INSTALL_DIR}/System/ScreenSavers )
-endif( WITH_OPENGL )
-
+ tde_create_translated_desktop(
+ SOURCE KSpace.desktop
+ DESTINATION ${APPS_INSTALL_DIR}/System/ScreenSavers
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdescreensaver-desktops
+ )
+endif( WITH_OPENGL )