diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,10 @@ set(REQUIRED_QT_VERSION 5.2.0) macro_optional_find_package(Qt5X11Extras ${REQUIRED_QT_VERSION}) macro_log_feature(Qt5X11Extras_FOUND "Qt5X11Extras" "Qt5X11Extras is needed for the x11renderer" "http://doc.qt.io/qt-5/qtx11extras-index.html" FALSE "${REQUIRED_QT_VERSION}") + + if(ECM_FOUND) + include(ECMPoQmTools) + endif() else () macro_log_feature(QT_QTOPENGL_FOUND "Qt4 OpenGL" "Qt4 OpenGL support is required to compile the gstreamer backend for Phonon" "" FALSE) endif() @@ -55,4 +59,8 @@ add_subdirectory(gstreamer) +if(ECM_FOUND AND IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po") + ecm_install_po_files_as_qm(po) +endif() + macro_display_feature_log() diff --git a/gstreamer/CMakeLists.txt b/gstreamer/CMakeLists.txt --- a/gstreamer/CMakeLists.txt +++ b/gstreamer/CMakeLists.txt @@ -104,6 +104,10 @@ add_definitions(-DBUILD_X11RENDERER) endif() +if(ECM_FOUND) + ecm_create_qm_loader(phonon_gstreamer_SRCS phonon_gstreamer_qt) +endif() + automoc4_add_library(phonon_gstreamer MODULE ${phonon_gstreamer_SRCS}) set_target_properties(phonon_gstreamer PROPERTIES PREFIX ""