diff --git a/CMakeLists.txt b/CMakeLists.txt index 245dd10562..798a5f8e61 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -221,13 +221,16 @@ set(kwin_OWN_LIBS ) set(kwin_QT_LIBS - ${QT_QTDECLARATIVE_LIBRARY} + ${Qt5Declarative_LIBRARIES} + ${Qt5X11Extras_LIBRARIES} ) set(kwin_KDE_LIBS - ${KDE4_KDEUI_LIBS} - ${KDE4_PLASMA_LIBS} - ${KDECLARATIVE_LIBRARIES} + ${KDE4Support_LIBRARIES} + ${KDE4_KDEUI_LIBRARY} + KF5::KCrash + KF5::plasma + KF5::KWindowSystem ) set(kwin_XLIB_LIBS diff --git a/libkdecorations/CMakeLists.txt b/libkdecorations/CMakeLists.txt index 4fa03bc1de..0e38b8fd6a 100644 --- a/libkdecorations/CMakeLists.txt +++ b/libkdecorations/CMakeLists.txt @@ -9,8 +9,16 @@ set(kdecorations_LIB_SRCS kde4_add_library(kdecorations SHARED ${kdecorations_LIB_SRCS}) -target_link_libraries(kdecorations ${KDE4_KDEUI_LIBS}) -target_link_libraries(kdecorations LINK_INTERFACE_LIBRARIES ${KDE4_KDEUI_LIBS}) +target_link_libraries(kdecorations + ${Qt5Widgets_LIBRARIES} + ${Qt5X11Extras_LIBRARIES} + ${KDE4_KDECORE_LIBRARY} # kdebug + ${KDE4_KDEUI_LIBRARY} # KGlobalSettings::windowTitleFont + KF5::KConfigCore + KF5::KI18n + KF5::KService # KLibrary +) +# target_link_libraries(kdecorations LINK_INTERFACE_LIBRARIES ${KDE4_KDEUI_LIBS}) set_target_properties(kdecorations PROPERTIES VERSION ${GENERIC_LIB_VERSION} diff --git a/libkwineffects/CMakeLists.txt b/libkwineffects/CMakeLists.txt index 4a218f5df2..c2e3b1999e 100644 --- a/libkwineffects/CMakeLists.txt +++ b/libkwineffects/CMakeLists.txt @@ -10,11 +10,14 @@ set(kwin_EFFECTSLIB_SRCS ) set(kwineffects_QT_LIBS - ${QT_QTGUI_LIBRARY} + ${Qt5DBus_LIBRARIES} + ${Qt5Widgets_LIBRARIES} + ${Qt5X11Extras_LIBRARIES} ) set(kwineffects_KDE_LIBS - ${KDE4_KDEUI_LIBS} + KF5::XmlGui # needed for KShortcutEditor + ${KDE4_KDECORE_LIBS} # needed for KDebug ) set(kwineffects_XLIB_LIBS @@ -58,7 +61,7 @@ macro( KWIN4_ADD_GLUTILS_BACKEND name glinclude ) include_directories(${OPENGLES_EGL_INCLUDE_DIR}) endif() kde4_add_library(${name} SHARED ${kwin_GLUTILSLIB_SRCS}) - target_link_libraries(${name} ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${kwineffects_XLIB_LIBS} ${kwineffects_XCB_LIBS} kwineffects) + target_link_libraries(${name} ${KDE4_KDECORE_LIBS} ${kwineffects_QT_LIBS} ${kwineffects_XLIB_LIBS} ${kwineffects_XCB_LIBS} kwineffects) if(OPENGL_EGL_FOUND) target_link_libraries(${name} ${OPENGLES_EGL_LIBRARY}) endif()