share/hedgewars/Data/Locale/CMakeLists.txt
branchgettext
changeset 11172 db1d14179b6c
parent 11168 e104e060911b
--- a/share/hedgewars/Data/Locale/CMakeLists.txt	Sat Sep 12 21:53:53 2015 +0200
+++ b/share/hedgewars/Data/Locale/CMakeLists.txt	Mon Nov 02 06:23:46 2015 +0100
@@ -9,12 +9,10 @@
 file(GLOB campaignfiles campaigns_*.txt)
 file(GLOB tipfiles tips_*.xml)
 
-#QT4_ADD_TRANSLATION(QM ${tsfiles})
-
-set(qtpro "${PROJECT_SOURCE_DIR}/project_files/hedgewars.pro")
+QT4_ADD_TRANSLATION(QM ${tsfiles})
 
 add_custom_target(release-translation-qt
-        COMMAND ${QT_LRELEASE_EXECUTABLE} -silent ${qtpro}
+        DEPENDS ${QM}
         COMMENT "Compiling ts files"
 )
 
@@ -105,6 +103,8 @@
         )
     endif()
 
+    set(qtpro "${PROJECT_SOURCE_DIR}/project_files/hedgewars.pro")
+
     add_custom_target(update-translation-qt
         COMMAND ${QT_LUPDATE_EXECUTABLE} -silent -locations absolute -pro ${qtpro}
         DEPENDS ${svrmsgsfile}