# HG changeset patch # User sheepluva # Date 1446441826 -3600 # Node ID db1d14179b6cd37908aa8af5218a7172b498b187 # Parent f878b2f71b40b7b5c3c56f7ca889bce459c5926e silent qm-compile did not play well with out-of-source building diff -r f878b2f71b40 -r db1d14179b6c 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}