Changeset View
Changeset View
Standalone View
Standalone View
phonon/CMakeLists.txt
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Line(s) | |||||
132 | if (PHONON_NO_PLATFORMPLUGIN) | 132 | if (PHONON_NO_PLATFORMPLUGIN) | ||
133 | add_definitions(-DQT_NO_PHONON_PLATFORMPLUGIN) | 133 | add_definitions(-DQT_NO_PHONON_PLATFORMPLUGIN) | ||
134 | endif (PHONON_NO_PLATFORMPLUGIN) | 134 | endif (PHONON_NO_PLATFORMPLUGIN) | ||
135 | 135 | | |||
136 | add_definitions(-DPHONON_LIBRARY_PATH="${CMAKE_INSTALL_PREFIX}/${PLUGIN_INSTALL_DIR}/plugins") | 136 | add_definitions(-DPHONON_LIBRARY_PATH="${CMAKE_INSTALL_PREFIX}/${PLUGIN_INSTALL_DIR}/plugins") | ||
137 | add_definitions(-DPHONON_BACKEND_DIR_SUFFIX="/${PHONON_LIB_SONAME}_backend/") | 137 | add_definitions(-DPHONON_BACKEND_DIR_SUFFIX="/${PHONON_LIB_SONAME}_backend/") | ||
138 | 138 | | |||
139 | add_library(${PHONON_LIB_SONAME} SHARED ${phonon_LIB_SRCS}) | 139 | add_library(${PHONON_LIB_SONAME} SHARED ${phonon_LIB_SRCS}) | ||
140 | qt5_use_modules(${PHONON_LIB_SONAME} Core Widgets) | | |||
141 | 140 | | |||
141 | if(PHONON_BUILD_PHONON4QT5) | ||||
142 | target_link_libraries(${PHONON_LIB_SONAME} Qt5::Core Qt5::Widgets) | ||||
142 | if(QT_QTDBUS_FOUND AND NOT PHONON_NO_DBUS) | 143 | if(QT_QTDBUS_FOUND AND NOT PHONON_NO_DBUS) | ||
143 | qt5_use_modules(${PHONON_LIB_SONAME} DBus) | 144 | target_link_libraries(${PHONON_LIB_SONAME} Qt5::DBus) | ||
144 | endif(QT_QTDBUS_FOUND AND NOT PHONON_NO_DBUS) | 145 | endif(QT_QTDBUS_FOUND AND NOT PHONON_NO_DBUS) | ||
145 | | ||||
146 | if (PHONON_PULSESUPPORT) | | |||
147 | target_link_libraries(${PHONON_LIB_SONAME} ${GOBJECT_LIBRARIES} ${PULSEAUDIO_LIBRARY} ${PULSEAUDIO_MAINLOOP_LIBRARY}) | | |||
148 | endif (PHONON_PULSESUPPORT) | | |||
149 | | ||||
150 | if(NOT PHONON_NO_GRAPHICSVIEW) | 146 | if(NOT PHONON_NO_GRAPHICSVIEW) | ||
151 | qt5_use_modules(${PHONON_LIB_SONAME} OpenGL) | 147 | target_link_libraries(${PHONON_LIB_SONAME} Qt5::OpenGL ${OPENGL_gl_LIBRARY}) | ||
152 | target_link_libraries(${PHONON_LIB_SONAME} ${OPENGL_gl_LIBRARY}) | 148 | endif() | ||
149 | else() | ||||
150 | target_link_libraries(${PHONON_LIB_SONAME} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY}) | ||||
151 | if(QT_QTDBUS_FOUND AND NOT PHONON_NO_DBUS) | ||||
152 | target_link_libraries(${PHONON_LIB_SONAME} ${QT_QTDBUS_LIBRARY}) | ||||
153 | endif(QT_QTDBUS_FOUND AND NOT PHONON_NO_DBUS) | ||||
154 | if(NOT PHONON_NO_GRAPHICSVIEW) | ||||
155 | target_link_libraries(${PHONON_LIB_SONAME} ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY}) | ||||
153 | endif() | 156 | endif() | ||
154 | | ||||
155 | if (QZEITGEIST_FOUND) | 157 | if (QZEITGEIST_FOUND) | ||
156 | target_link_libraries(${PHONON_LIB_SONAME} ${QZEITGEIST_LIBRARY}) | 158 | target_link_libraries(${PHONON_LIB_SONAME} ${QZEITGEIST_LIBRARY}) | ||
157 | endif(QZEITGEIST_FOUND) | 159 | endif(QZEITGEIST_FOUND) | ||
160 | endif() | ||||
161 | | ||||
162 | if (PHONON_PULSESUPPORT) | ||||
163 | target_link_libraries(${PHONON_LIB_SONAME} ${GOBJECT_LIBRARIES} ${PULSEAUDIO_LIBRARY} ${PULSEAUDIO_MAINLOOP_LIBRARY}) | ||||
164 | endif (PHONON_PULSESUPPORT) | ||||
158 | 165 | | |||
159 | if (${CMAKE_SYSTEM_NAME} MATCHES "SunOS") | 166 | if (${CMAKE_SYSTEM_NAME} MATCHES "SunOS") | ||
160 | # We need to explicitly link libm to phonon in Solaris | 167 | # We need to explicitly link libm to phonon in Solaris | ||
161 | target_link_libraries(${PHONON_LIB_SONAME} m) | 168 | target_link_libraries(${PHONON_LIB_SONAME} m) | ||
162 | endif (${CMAKE_SYSTEM_NAME} MATCHES "SunOS") | 169 | endif (${CMAKE_SYSTEM_NAME} MATCHES "SunOS") | ||
163 | 170 | | |||
164 | set_target_properties(${PHONON_LIB_SONAME} PROPERTIES | 171 | set_target_properties(${PHONON_LIB_SONAME} PROPERTIES | ||
165 | VERSION ${PHONON_LIB_VERSION} | 172 | VERSION ${PHONON_LIB_VERSION} | ||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |