From cd5ee90d0e707d5f0f710ebf879fe3b81bcdc712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Wed, 16 Oct 2013 00:28:02 +0200 Subject: [PATCH] Clean up libplasma cmake --- src/plasma/CMakeLists.txt | 24 +++++++++++------------- src/plasmaquick/autotests/CMakeLists.txt | 4 +++- src/scriptengines/qml/CMakeLists.txt | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/plasma/CMakeLists.txt b/src/plasma/CMakeLists.txt index 2e48ded43..ab0b75d2e 100644 --- a/src/plasma/CMakeLists.txt +++ b/src/plasma/CMakeLists.txt @@ -36,7 +36,7 @@ endif(NOT PLASMA_NO_SOLID) if(NOT PLASMA_NO_PACKAGEKIT) add_definitions(-DPLASMA_ENABLE_PACKAGEKIT_SUPPORT=1) - set(PLASMA_EXTRA_LIBS ${PLASMA_EXTRA_LIBS} ${QT_QTDBUS_LIBRARY}) + set(PLASMA_EXTRA_LIBS ${PLASMA_EXTRA_LIBS} Qt5::DBus) endif(NOT PLASMA_NO_PACKAGEKIT) if (NOT PLASMA_NO_KUTILS) @@ -127,28 +127,26 @@ kconfig_add_kcfg_files(plasma_LIB_SRCS data/kconfigxt/libplasma-theme-global.kcf add_library(plasma SHARED ${plasma_LIB_SRCS}) target_link_libraries(plasma - ${QT_QTNETWORK_LIBRARY} - ${QT_QTSQL_LIBRARY} - ${Qt5Quick_LIBRARIES} + Qt5::Network + Qt5::Sql + Qt5::Quick # needed in service.cpp, remove? Qt5::Svg Qt5::DBus - ${ThreadWeaver_LIBRARIES} - ${KAuth_LIBRARIES} - ${KWindowSystem_LIBRARIES} - ${PLASMA_EXTRA_LIBS} + Qt5::UiTools + KF5::KArchive KF5::KGuiAddons KF5::KIconThemes KF5::KI18n KF5::KService KF5::KIOCore KF5::KIOWidgets + KF5::ThreadWeaver + KF5::KWindowSystem + KF5::KAuth + KF5::KDeclarative KF5::KDE4Attic - Qt5::UiTools - ${KDE4Attic_LIBRARIES} - #${KDE4Support_LIBRARIES} # needed for KStandardDirs and KGlobal + ${PLASMA_EXTRA_LIBS} ) -#FIXME gpgme++ is in kdepimlibs, needs to be elsewhere -target_link_libraries(plasma KF5::KDeclarative KF5::KArchive) if(X11_FOUND) target_link_libraries(plasma Qt5::X11Extras ${X11_LIBRARIES}) diff --git a/src/plasmaquick/autotests/CMakeLists.txt b/src/plasmaquick/autotests/CMakeLists.txt index b886bad02..5070a846d 100644 --- a/src/plasmaquick/autotests/CMakeLists.txt +++ b/src/plasmaquick/autotests/CMakeLists.txt @@ -9,7 +9,9 @@ find_package(KCoreAddons REQUIRED) MACRO(PLASMA_UNIT_TESTS) FOREACH(_testname ${ARGN}) add_executable(${_testname} ${_testname}.cpp) - target_link_libraries(${_testname} ${QT_QTTEST_LIBRARY} ${QT_QTDECLARATIVE_LIBRARY} + target_link_libraries(${_testname} + Qt5::Test + Qt5::Declarative plasma KF5::KArchive KF5::KCoreAddons KF5::KConfigGui KF5::KI18n diff --git a/src/scriptengines/qml/CMakeLists.txt b/src/scriptengines/qml/CMakeLists.txt index 03c3d7787..80fcf220b 100644 --- a/src/scriptengines/qml/CMakeLists.txt +++ b/src/scriptengines/qml/CMakeLists.txt @@ -26,10 +26,10 @@ target_link_libraries(plasma_appletscript_declarative KF5::KIOCore KF5::KIOWidgets KF5::KDE4Attic + KF5::KDeclarative KF5::KI18n plasma PlasmaQuick - KF5::KDeclarative )