option(SPUTDEV "Do not use!" OFF)
set(QT "" CACHE STRING "Path to a Qt installation to use instead of the system Qt")
-
+set(LINGUAS "" CACHE STRING "Space-separated List of locales specifying languages that should be compiled")
+
if(STATIC)
set(CMAKE_BUILD_TYPE Release)
endif(STATIC)
# Make sure version.gen exists before building mod_common
add_dependencies(mod_common genversion_run)
+include(QuasselGenerateTranslations)
+quassel_generate_i18n_resource(RC_I18N ${LINGUAS})
+
# Add resources
-qt4_add_resources(RC_I18N i18n/i18n.qrc)
+#qt4_add_resources(RC_I18N i18n/i18n.qrc)
qt4_add_resources(RC_ICONS src/icons/icons.qrc)
qt4_add_resources(RC_QUASSEL_ICONS src/icons/quassel-icons.qrc)
qt4_add_resources(RC_SQL src/core/sql.qrc)