-# This generates a .qm from a .po file
-macro(generate_qm outvar basename)
- set(input ${CMAKE_SOURCE_DIR}/i18n/${basename}.po)
- set(output ${CMAKE_BINARY_DIR}/i18n/${basename}.qm)
+ list(REMOVE_DUPLICATES QUASSEL_QT_LIBRARIES)
+ list(REMOVE_DUPLICATES QUASSEL_QT_INCLUDES)
+ list(REMOVE_DUPLICATES QUASSEL_QT_DEFINITIONS)
+
+ # The COMPILE_FLAGS property expects a string, not a list...
+ set(QUASSEL_QT_COMPILEFLAGS )
+ foreach(flag ${QUASSEL_QT_DEFINITIONS})
+ set(QUASSEL_QT_COMPILEFLAGS "${QUASSEL_QT_COMPILEFLAGS} ${flag}")
+ endforeach(flag)
+
+endmacro(setup_qt_variables)
+
+# This generates a .ts from a .po file
+macro(generate_ts outvar basename)
+ set(input ${basename}.po)
+ set(output ${CMAKE_BINARY_DIR}/po/${basename}.ts)