X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=884097f8af7e2b171edd4ea795674dca9f1f8c58;hp=16dac306a80a124028e9b079ec9e6fd07254245d;hb=5d4f2b11c300d85ef0030575746db2f187bf21e7;hpb=335e3cf6203327b3ce1ee6e47c09a8139232317c diff --git a/CMakeLists.txt b/CMakeLists.txt index 16dac306..884097f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,7 +32,8 @@ option(DEPLOY "Mac OS X only! Adds required libs to bundle resources and 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) @@ -111,8 +112,11 @@ endif(WANT_QTCLIENT OR WANT_MONO) # 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)