[rkward-cvs] SF.net SVN: rkward: [2246] branches/KDE4_port/po/CMakeLists.txt
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Mon Nov 19 00:18:48 UTC 2007
Revision: 2246
http://rkward.svn.sourceforge.net/rkward/?rev=2246&view=rev
Author: tfry
Date: 2007-11-18 16:18:48 -0800 (Sun, 18 Nov 2007)
Log Message:
-----------
po file installation
Modified Paths:
--------------
branches/KDE4_port/po/CMakeLists.txt
Modified: branches/KDE4_port/po/CMakeLists.txt
===================================================================
--- branches/KDE4_port/po/CMakeLists.txt 2007-11-18 23:12:18 UTC (rev 2245)
+++ branches/KDE4_port/po/CMakeLists.txt 2007-11-19 00:18:48 UTC (rev 2246)
@@ -1,16 +1,16 @@
-INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR} )
+FIND_PACKAGE (Gettext REQUIRED)
+ADD_CUSTOM_TARGET(translations ALL)
-########### install files ###############
+FILE(GLOB PO_FILES *.po)
-
-
-
-#original Makefile.am contents follow:
-
-######## kdevelop will overwrite this part!!! (begin)##########
-#
-#
-######## kdevelop will overwrite this part!!! (end)############
-#POFILES = AUTO
-#
+FOREACH(_poFile ${PO_FILES})
+ GET_FILENAME_COMPONENT(_basename ${_poFile} NAME_WE)
+ SET(_gmoFile ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.gmo)
+ SET(_target translation_${_basename})
+ ADD_CUSTOM_TARGET(${_target}
+ COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o ${_gmoFile} ${_poFile}
+ DEPENDS ${_poFile})
+ INSTALL(FILES ${_gmoFile} DESTINATION ${LOCALE_INSTALL_DIR}/${_basename}/LC_MESSAGES/ RENAME ${_basename}.mo)
+ ADD_DEPENDENCIES(translations ${_target})
+ENDFOREACH(_poFile ${PO_FILES})
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list