share/hedgewars/Data/Locale/CMakeLists.txt
changeset 3822 ee85a9c73ece
parent 3683 8d3b483c6949
child 4502 759c1a3bb156
--- a/share/hedgewars/Data/Locale/CMakeLists.txt	Fri Sep 03 01:41:51 2010 +0200
+++ b/share/hedgewars/Data/Locale/CMakeLists.txt	Fri Sep 03 01:54:29 2010 +0200
@@ -1,9 +1,18 @@
 file(GLOB txttrans2 ??.txt)
 file(GLOB txttrans5 ?????.txt)
-file(GLOB qmtrans hedgewars_*.qm)
+file(GLOB tsfiles *.ts)
+
+QT4_ADD_TRANSLATION(QM ${tsfiles})
+
+add_custom_target (release-translation ALL 
+		DEPENDS ${QM}
+		COMMENT "Compiling ts files"
+)
 
 install(FILES
 	${txttrans2}
 	${txttrans5}
-	${qmtrans}
-	DESTINATION ${SHAREPATH}Data/Locale)
+	${QM}
+	DESTINATION ${SHAREPATH}Data/Locale
+)
+