X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=041e2d78de42d1fb1369e29a5b10274227bb7cab;hp=7b8343a9873056a0362a8ba1fe34f20923ac776e;hb=692a66647075e54be6d78e44ae5d7eb00d403d98;hpb=907e6c4c2f5e199600b54213f6964d2c50bdc700 diff --git a/CMakeLists.txt b/CMakeLists.txt index 7b8343a9..041e2d78 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,23 +86,6 @@ if(EXECINFO_FOUND) link_libraries(${EXECINFO_LIBRARIES}) endif(EXECINFO_FOUND) -# Decide what to do with icons -if(WANT_QTCLIENT OR WANT_MONO) - if(QUASSEL_ICONS MATCHES "External") - message(STATUS "Install Quassel icons to ${CMAKE_INSTALL_PREFIX}/share/apps/quassel") - else(QUASSEL_ICONS MATCHES "External") - set(QUASSEL_ICONS "Builtin") - message(STATUS "Compile Quassel icons into the binary") - endif(QUASSEL_ICONS MATCHES "External") - - if(OXYGEN_ICONS MATCHES "External") - message(STATUS "Use system-installed Oxygen icon theme") - else(OXYGEN_ICONS MATCHES "External") - set(OXYGEN_ICONS "Builtin") - message(STATUS "Compile Oxygen icon theme subset into the binary") - endif(OXYGEN_ICONS MATCHES "External") -endif(WANT_QTCLIENT OR WANT_MONO) - # Select a Qt installation here, if you don't want to use system Qt if(QT) # FindQt4 will look for the qmake binary in $PATH, so we just prepend the Qt dir @@ -173,6 +156,11 @@ if(WIN32) set(RC_WIN32 pics/win32.rc) # for app icons on windows endif(WIN32) +# This is dirty, but I haven't found a cleaner way to ensure that the generated .qrc files +# (which will be removed with make clean) are regenerated :/ +set_directory_properties(PROPERTIES + ADDITIONAL_MAKE_CLEAN_FILES CMakeCache.txt) + # We need to create a version.gen # For this, we create our genversion binary and make sure it is run every time. add_executable(genversion ${CMAKE_SOURCE_DIR}/src/common/genversion.cpp) @@ -183,14 +171,26 @@ add_custom_target(genversion_run ALL ${GENVERSION_EXECUTABLE} ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}/src/common/version.gen) add_dependencies(genversion_run genversion) -# Generate binary translation files -include(QuasselGenerateTranslations) -quassel_generate_i18n_resource(RC_I18N ${LINGUAS}) +# Decide what to do with icons +if(WANT_QTCLIENT OR WANT_MONO) + if(QUASSEL_ICONS MATCHES "External") + message(STATUS "Install Quassel icons to ${CMAKE_INSTALL_PREFIX}/share/apps/quassel") + else(QUASSEL_ICONS MATCHES "External") + set(QUASSEL_ICONS "Builtin") + message(STATUS "Compile Quassel icons into the binary") + endif(QUASSEL_ICONS MATCHES "External") + if(OXYGEN_ICONS MATCHES "External") + message(STATUS "Use system-installed Oxygen icon theme") + else(OXYGEN_ICONS MATCHES "External") + set(OXYGEN_ICONS "Builtin") + message(STATUS "Compile Oxygen icon theme subset into the binary") + endif(OXYGEN_ICONS MATCHES "External") +endif(WANT_QTCLIENT OR WANT_MONO) # These variables will be added to the main targets (CORE, QTCLIENT, MONO) -set(COMMON_DEPS ${RC_I18N} ${RC_WIN32}) +set(COMMON_DEPS ${RC_WIN32}) set(CORE_DEPS ) set(CLIENT_DEPS ) set(KDE_DEPS ) @@ -199,6 +199,7 @@ set(KDE_DEPS ) add_subdirectory(data) add_subdirectory(icons) #add_subdirectory(pics) +add_subdirectory(i18n) add_subdirectory(src) # Make sure version.gen exists before building mod_common