aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorChusslove Illich <caslav.ilic@gmx.net>2007-05-17 19:11:28 +0000
committerChusslove Illich <caslav.ilic@gmx.net>2007-05-17 19:11:28 +0000
commit7fe12f80f5cd3df56073a977790dc5507003cfd3 (patch)
tree4970caab5bdfb072f79434d7872da714bdfdc281 /modules
parente21ac892370c4c7dd294ed75ccc2d1f3c5670b72 (diff)
downloadextra-cmake-modules-7fe12f80f5cd3df56073a977790dc5507003cfd3.tar.gz
extra-cmake-modules-7fe12f80f5cd3df56073a977790dc5507003cfd3.tar.bz2
ld system support for translation scripting (#2).
svn path=/trunk/KDE/kdelibs/; revision=665741
Diffstat (limited to 'modules')
-rw-r--r--modules/KDE4Macros.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake
index 8e382b0d..030a4f2d 100644
--- a/modules/KDE4Macros.cmake
+++ b/modules/KDE4Macros.cmake
@@ -239,6 +239,14 @@ macro(KDE4_INSTALL_PO_FILES _lang)
endforeach(_current_PO_FILES)
endmacro(KDE4_INSTALL_PO_FILES)
+macro(KDE4_INSTALL_TS_FILES _lang _sdir)
+ file(GLOB_RECURSE _ts_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${_sdir}/*)
+ foreach(_current_TS_FILES ${_ts_files})
+ get_filename_component(_subpath ${_current_TS_FILES} PATH)
+ install(FILES ${_current_TS_FILES} DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_SCRIPTS/${_subpath})
+ endforeach(_current_TS_FILES)
+endmacro(KDE4_INSTALL_TS_FILES)
+
macro (KDE4_INSTALL_HANDBOOK)
get_filename_component(_tmp_FILE ${CMAKE_CURRENT_SOURCE_DIR} ABSOLUTE)
get_filename_component(_basename ${_tmp_FILE} NAME_WE)