diff --git a/PySide/CMakeLists.txt b/PySide/CMakeLists.txt index b1b3286..0e45080 100644 --- a/PySide/CMakeLists.txt +++ b/PySide/CMakeLists.txt @@ -79,6 +79,19 @@ if (NOT QT_QTDECLARATIVE_FOUND AND ${QTVERSION} VERSION_GREATER 4.6.0) endif() endif () +if (CMAKE_HOST_UNIX) + # Try to find KDE Phonon + if (NOT QT_PHONON_FOUND) + find_path(QT_PHONON_INCLUDE_DIR audiooutput.h + PATHS ${QT_HEADERS_DIR}/../phonon + NO_DEFAULT_PATH) + find_library(QT_PHONON_LIBRARY phonon PATHS ${QT_LIBRARY_DIR}/.. NO_DEFAULT_PATH) + if (QT_PHONON_INCLUDE_DIR AND QT_PHONON_LIBRARY) + set(QT_PHONON_FOUND ON) + endif() + endif () +endif () + HAS_QT_MODULE(QT_QTCORE_FOUND QtCore) HAS_QT_MODULE(QT_QTGUI_FOUND QtGui) HAS_QT_MODULE(QT_QTNETWORK_FOUND QtNetwork)