X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=i18n%2FCMakeLists.txt;h=feb774ec200ce3dd2af9ba8e5ac3b12ae37c7ce0;hb=661013d9d9588cd5383dbb0838dcfd35c95ba5ad;hp=909b968f0cecd68257181d1abe8e0173f50ce2e4;hpb=1514aaae673660c7a3e2a82545b8c3947ea3f9b7;p=quassel.git
diff --git a/i18n/CMakeLists.txt b/i18n/CMakeLists.txt
index 909b968f..feb774ec 100644
--- a/i18n/CMakeLists.txt
+++ b/i18n/CMakeLists.txt
@@ -22,22 +22,22 @@ if(QT_LRELEASE_EXECUTABLE)
set(gen_linguas "${gen_linguas} ${lang}")
endif(flg)
endforeach(TS_FILE ${avail_tsfiles})
-
- # Write resource file
- set(resfile ${CMAKE_CURRENT_BINARY_DIR}/i18n.qrc)
- file(WRITE ${resfile} "\n"
- "\n")
- foreach(file ${qm_files})
- get_filename_component(file ${file} NAME)
- file(APPEND ${resfile} " ${file}\n")
- endforeach(file ${qm_files})
- file(APPEND ${resfile} "\n\n")
- add_custom_command(OUTPUT ${resfile} DEPENDS ${qm_files})
- #set_directory_properties(PROPERTIES
- # ADDITIONAL_MAKE_CLEAN_FILES "${outfiles} i18n.qrc")
- qt4_add_resources(RC_I18N ${resfile})
- add_custom_target(i18n DEPENDS ${RC_I18N})
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)
+
+# Write resource file
+set(resfile ${CMAKE_CURRENT_BINARY_DIR}/i18n.qrc)
+file(WRITE ${resfile} "\n"
+ "\n")
+foreach(file ${qm_files})
+ get_filename_component(file ${file} NAME)
+ file(APPEND ${resfile} " ${file}\n")
+endforeach(file ${qm_files})
+file(APPEND ${resfile} "\n\n")
+
+#add_custom_command(OUTPUT ${resfile} DEPENDS ${qm_files})
+set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${qm_files} i18n.qrc")
+qt4_add_resources(RC_I18N ${resfile})
+add_custom_target(i18n DEPENDS ${RC_I18N})