X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=cmake%2Fmodules%2FQuasselMacros.cmake;h=707afc9de33e4169c6cc0d75de746ef2920cc44e;hp=6b2f82d30370ce5b1d4541d20cf8c6d1895acc6c;hb=5b1e88d1770922fbe8b166994b0f06aa7f596517;hpb=e8e1f038e6bf4a7bc938e316774374d3116ff39a diff --git a/cmake/modules/QuasselMacros.cmake b/cmake/modules/QuasselMacros.cmake index 6b2f82d3..707afc9d 100644 --- a/cmake/modules/QuasselMacros.cmake +++ b/cmake/modules/QuasselMacros.cmake @@ -9,14 +9,17 @@ macro(setup_qt4_variables) set(MAIN MAIN) ENDIF(WIN32) foreach(qtmod CORE ${ARGV} ${MAIN}) - set(QUASSEL_QT_LIBRARIES ${QUASSEL_QT_LIBRARIES} ${QT_QT${qtmod}_LIBRARY} ${QT_${qtmod}_LIB_DEPENDENCIES}) + set(QUASSEL_QT_LIBRARIES ${QUASSEL_QT_LIBRARIES} ${QT_QT${qtmod}_LIBRARY}) + if(STATIC) + set(QUASSEL_QT_LIBRARIES ${QUASSEL_QT_LIBRARIES} ${QT_${qtmod}_LIB_DEPENDENCIES}) + endif(STATIC) endforeach(qtmod ${ARGV}) set(QUASSEL_QT_LIBRARIES ${QUASSEL_QT_LIBRARIES} ${QT_LIBRARIES}) endmacro(setup_qt4_variables) # This generates a .qm from a .ts file macro(generate_qm outvar basename) - set(input ${basename}.ts) + set(input ${CMAKE_SOURCE_DIR}/i18n/${basename}.ts) set(output ${CMAKE_CURRENT_BINARY_DIR}/${basename}.qm) add_custom_command(OUTPUT ${output} COMMAND ${QT_LRELEASE_EXECUTABLE}