1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-21 00:12:06 +02:00

Don't link all plugins against QtDBus

This commit is contained in:
Dominik Schmidt 2013-05-25 16:46:26 +02:00
parent 39a0790c0e
commit 93f999a9ca
2 changed files with 6 additions and 2 deletions

View File

@ -40,7 +40,7 @@ ENDMACRO(CDR)
macro(tomahawk_add_plugin)
parse_arguments(PLUGIN
"SOURCES;UI;LINK_LIBRARIES;TYPE;EXPORT_MACRO;COMPILE_DEFINITIONS"
"SOURCES;UI;LINK_LIBRARIES;QT5_MODULES;TYPE;EXPORT_MACRO;COMPILE_DEFINITIONS"
"NO_INSTALL;SHARED_LIB"
${ARGN}
)
@ -77,7 +77,10 @@ macro(tomahawk_add_plugin)
endif()
# add qt modules
qt5_use_modules(${target} Core Network Widgets Sql Xml DBus)
qt5_use_modules(${target} Core Network Widgets Sql Xml)
if( PLUGIN_QT5_MODULES )
qt5_use_modules(${target} ${PLUGIN_QT5_MODULES})
endif()
# definitions - can this be moved into set_target_properties below?
add_definitions(${QT_DEFINITIONS})

View File

@ -27,4 +27,5 @@ SET(mpris_srcs
tomahawk_add_plugin(mpris
TYPE infoplugin EXPORT_MACRO INFOPLUGINDLLEXPORT_PRO
SOURCES "${mpris_srcs}"
QT5_MODULES "DBus"
)