-adapt to current changes in kdelibs regarding kde4support: use ${KDE4Support_LIBRARIES} when using it
Search for KDE4Support, but after searching KDELibs4, this is hackish, but currentlx necessary due to cyclic dependencies we still have Alex
This commit is contained in:
parent
718298fa2c
commit
454bf83be3
@ -54,7 +54,6 @@ find_package(KF5 MODULE REQUIRED COMPONENTS CMake Compiler InstallDirs
|
||||
#find_package(KF5Transitional REQUIRED)
|
||||
|
||||
# those are not "done" yet:
|
||||
find_package(kde4support REQUIRED NO_MODULE)
|
||||
find_package(ktextwidgets REQUIRED NO_MODULE)
|
||||
find_package(ki18n REQUIRED NO_MODULE)
|
||||
find_package(kio REQUIRED NO_MODULE)
|
||||
@ -64,6 +63,9 @@ find_package(kdeclarative REQUIRED NO_MODULE)
|
||||
# FIXME: remove when kdeui is fully split up
|
||||
find_package(KDELibs4 REQUIRED NO_MODULE)
|
||||
|
||||
# must be after KDELibs4, since it links against imported targets coming from KDELibs4Config.cmake:
|
||||
find_package(KDE4Support REQUIRED NO_MODULE)
|
||||
|
||||
#optional features
|
||||
find_package(X11 MODULE)
|
||||
if(X11_FOUND)
|
||||
|
@ -15,7 +15,7 @@ qt4_automoc(sortfiltermodeltest.cpp)
|
||||
|
||||
target_link_libraries(sortfiltermodeltest
|
||||
plasma
|
||||
KDE4__kde4support
|
||||
${KDE4Support_LIBRARIES}
|
||||
${QT_QTGUI_LIBRARY}
|
||||
${QT_QTTEST_LIBRARY}
|
||||
)
|
||||
|
@ -11,7 +11,7 @@ target_link_libraries(dirmodelplugin
|
||||
${QT_QTCORE_LIBRARY}
|
||||
${Qt5Qml_LIBRARIES}
|
||||
${KDE4_KIO_LIBS}
|
||||
KDE4__kde4support
|
||||
${KDE4Support_LIBRARIES}
|
||||
)
|
||||
|
||||
install(TARGETS dirmodelplugin DESTINATION ${QML_INSTALL_DIR}/org/kde/dirmodel)
|
||||
|
@ -8,7 +8,7 @@ target_link_libraries(fullmodelaccesstest
|
||||
${QT_QTGUI_LIBRARY}
|
||||
${QT_QTTEST_LIBRARY}
|
||||
${KDE4_KDECORE_LIBS}
|
||||
KDE4__kde4support
|
||||
${KDE4Support_LIBRARIES}
|
||||
)
|
||||
|
||||
add_test(plasma-fullmodelaccesstest fullmodelaccesstest)
|
||||
|
@ -149,7 +149,7 @@ target_link_libraries(plasma
|
||||
${KWindowSystem_LIBRARIES}
|
||||
${PLASMA_EXTRA_LIBS}
|
||||
ki18n
|
||||
${kde4support_LIBRARY}
|
||||
${KDE4Support_LIBRARIES}
|
||||
)
|
||||
#FIXME gpgme++ is in kdepimlibs, neeeds to be elsewhere
|
||||
target_link_libraries(plasma kdeclarative ${KArchive_LIBRARIES})
|
||||
|
@ -26,7 +26,7 @@ include_directories(${PHONON_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR}/common)
|
||||
kde4_add_plugin(plasma_appletscript_declarative ${declarative_appletscript_SRCS})
|
||||
target_link_libraries(plasma_appletscript_declarative
|
||||
${KDE4_KIO_LIBS}
|
||||
${KDE4_KDE4SUPPORT_LIBS}
|
||||
${KDE4Support_LIBRARIES}
|
||||
${QT_QTSCRIPT_LIBRARY}
|
||||
${Qt5Quick_LIBRARIES}
|
||||
${Qt5Qml_LIBRARIES}
|
||||
|
@ -82,11 +82,10 @@ target_link_libraries(plasma-shell
|
||||
plasma
|
||||
${Qt5Script_LIBRARIES}
|
||||
${KDE4_KDEUI_LIBS}
|
||||
KDE4__kde4support
|
||||
${KDE4Support_LIBRARIES}
|
||||
${Solid_LIBRARIES}
|
||||
kdeclarative
|
||||
)
|
||||
message("+++ kde4support : ${kde4support_LIBRARY}")
|
||||
|
||||
|
||||
install(TARGETS plasma-shell ${INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
Loading…
Reference in New Issue
Block a user