Uh, apparently, cmake-2.6 is not always downward compatible to 2.4...
[quassel.git] / cmake / modules / QuasselGenerateTranslations.cmake
index 6330ac5..a5fc97d 100644 (file)
@@ -39,6 +39,7 @@ macro(quassel_generate_i18n_resource outvar)
       if(flg)
         quassel_generate_qm(QM ${basename})
         set(outfiles ${outfiles} ${QM})
+        set(gen_linguas "${gen_linguas} ${lang}")
       endif(flg)
     endforeach(TS_FILE ${avail_tsfiles})
 
@@ -52,15 +53,16 @@ macro(quassel_generate_i18n_resource outvar)
     endforeach(file ${outfiles})
     file(APPEND ${resfile} "</qresource>\n</RCC>\n")
     add_custom_command(OUTPUT ${resfile} DEPENDS ${outfiles})
-    set_directory_properties(PROPERTIES
-          ADDITIONAL_MAKE_CLEAN_FILES "${outfiles} i18n.qrc")
+    #set_directory_properties(PROPERTIES
+    #      ADDITIONAL_MAKE_CLEAN_FILES "${outfiles} i18n.qrc")
 
     # Generate resource
     qt4_add_resources(RC_OUT ${resfile})
     set(${outvar} ${RC_OUT})
 
+    message(STATUS "Including languages:${gen_linguas}")
   else(QT_LRELEASE_EXECUTABLE)
     message(STATUS "WARNING: lrelease not found, you won't have translations!")
   endif(QT_LRELEASE_EXECUTABLE)
-endmacro(quassel_generate_i18n_resource outvar linguas)
+endmacro(quassel_generate_i18n_resource outvar)