summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <[email protected]>2016-04-27 05:24:23 +0200
committerFriedrich W. H. Kossebau <[email protected]>2016-04-27 18:02:08 +0200
commit6ba6788aab49a43df9921ea0d569fe3a4fb3d1b4 (patch)
tree2636ce754fc1e4e04039d6c93dac4f215002521f
parent8802907dc773ad8234d53aa7c9c0fdceb2caba8a (diff)
Restore linking of libmarblewidget to Phonon
Summary: Seems that was lost during the Qt5 port. Nobody missed it yet? :) Reviewers: rahn, nienhueser Reviewed By: nienhueser Projects: #marble Differential Revision: https://phabricator.kde.org/D1500
-rw-r--r--src/lib/marble/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/marble/CMakeLists.txt b/src/lib/marble/CMakeLists.txt
index ac4d83a..ee39e4d 100644
--- a/src/lib/marble/CMakeLists.txt
+++ b/src/lib/marble/CMakeLists.txt
@@ -4,6 +4,9 @@ macro_optional_find_package(Phonon)
marble_set_package_properties( Phonon PROPERTIES DESCRIPTION "cross-platform multimedia framework that enables the use of audio and video content" )
marble_set_package_properties( Phonon PROPERTIES URL "http://qt.digia.com/" )
marble_set_package_properties( Phonon PROPERTIES TYPE OPTIONAL PURPOSE "Support for playback of soundcue elements" )
+if(PHONON_FOUND)
+ set(HAVE_PHONON TRUE)
+endif()
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
@@ -24,6 +27,7 @@ INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}/cloudsync
${CMAKE_SOURCE_DIR}/src/lib/astro
${ZLIB_INCLUDE_DIRS}
+ ${PHONON_INCLUDES}
)
INCLUDE(geodata/CMakeLists.txt)
@@ -389,6 +393,12 @@ if (NOT QT_NO_DBUS AND NOT CMAKE_SYSTEM_NAME STREQUAL Android)
Qt5::DBus
)
endif ()
+if (PHONON_FOUND)
+ TARGET_LINK_LIBRARIES (${MARBLEWIDGET}
+ LINK_PRIVATE
+ ${PHONON_LIBS}
+ )
+endif()
if (APPLE)
# TODO: PUBLIC or can be PRIVATE?