Adjust target link libraries
This commit is contained in:
parent
bbaefd2f68
commit
f04b39c548
3 changed files with 23 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue