silent qm-compile did not play well with out-of-source building gettext
authorsheepluva
Mon, 02 Nov 2015 06:23:46 +0100
branchgettext
changeset 11172 db1d14179b6c
parent 11170 f878b2f71b40
child 11268 b14de8b74183
silent qm-compile did not play well with out-of-source building
share/hedgewars/Data/Locale/CMakeLists.txt
--- 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}