From 99b9f79b3bac320f0f49009d87c819f40cf9f895 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 24 Jul 2013 08:14:32 +0200 Subject: [PATCH] Fix linking of Effects and Effect Configs --- effects/CMakeLists.txt | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/effects/CMakeLists.txt b/effects/CMakeLists.txt index 3cfffbc602..af6c2324d5 100644 --- a/effects/CMakeLists.txt +++ b/effects/CMakeLists.txt @@ -3,13 +3,17 @@ set(kwin_effect_OWN_LIBS ) set(kwin_effect_KDE_LIBS - ${KDE4_KDEUI_LIBS} - ${KDE4_PLASMA_LIBS} - ${KDECLARATIVE_LIBRARIES} + ${KDE4Support_LIBRARIES} + ${KDE4_KDEUI_LIBRARY} + ${KDE4_KDECORE_LIBS} # kdebug + KF5::KWindowSystem + KF5::plasma # screenedge effect ) set(kwin_effect_QT_LIBS - ${QT_QTDECLARATIVE_LIBRARY} + ${Qt5Declarative_LIBRARIES} + ${Qt5X11Extras_LIBRARIES} + ${Qt5DBus_LIBRARIES} ) set(kwin_effect_XLIB_LIBS @@ -81,7 +85,15 @@ macro( KWIN4_ADD_EFFECT_CONFIG name ) if(OPENGLES_FOUND) set_target_properties(kcm_kwin4_effect_${name} PROPERTIES COMPILE_FLAGS "-DKWIN_HAVE_OPENGLES") endif() - target_link_libraries( kcm_kwin4_effect_${name} kwineffects ${KDE4_KIO_LIBS} ${KDE4_KDEUI_LIBS} ) + target_link_libraries( kcm_kwin4_effect_${name} + kwineffects + ${Qt5Widgets_LIBRARIES} + ${KDE4Support_LIBRARIES} + ${KDE4_KDEUI_LIBRARY} + ${KDE4_KIO_LIBRARY} # KUrlRequester + KF5::KCoreAddons + KF5::KI18n + ) install( TARGETS kcm_kwin4_effect_${name} DESTINATION ${PLUGIN_INSTALL_DIR} ) endmacro()