Commit 9e9794d7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Reduce linking

parent b2aa285c
......@@ -53,7 +53,14 @@ kconfig_add_kcfg_files(libknotesprivate_kcfg_lib_SRCS ${libknotesprivate_kcfg_li
add_library(knotesprivate ${libknotesprivate_lib_SRCS} ${libknotesprivate_kcfg_lib_SRCS} )
generate_export_header(knotesprivate BASE_NAME knotes)
target_link_libraries(knotesprivate pimcommon KF5::KCMUtils Grantlee5::Templates KF5::NewStuff KF5::WindowSystem KF5::IconThemes Qt5::PrintSupport KF5::KDELibs4Support noteshared KF5::AkonadiSearchPIM KF5::AkonadiNotes)
target_link_libraries(knotesprivate
PUBLIC
pimcommon
KF5::IconThemes
PRIVATE
KF5::KCMUtils Grantlee5::Templates KF5::NewStuff KF5::WindowSystem Qt5::PrintSupport KF5::KDELibs4Support noteshared KF5::AkonadiSearchPIM KF5::AkonadiNotes
)
set_target_properties(knotesprivate
PROPERTIES VERSION ${KDEPIM_LIB_VERSION} SOVERSION ${KDEPIM_LIB_SOVERSION}
)
......@@ -82,13 +89,16 @@ ecm_add_app_icon(knotes_SRCS ICONS ${ICONS_SRCS})
add_executable(knotes ${knotes_SRCS})
target_link_libraries(knotes knotesprivate pimcommon KF5::DNSSD
target_link_libraries(knotes
knotesprivate KF5::KCMUtils
pimcommon KF5::DNSSD
KF5::KontactInterface noteshared
KF5::AkonadiCore
KF5::Mime
KF5::GlobalAccel
)
KF5::AkonadiNotes
KF5::KDELibs4Support
)
if (Qt5X11Extras_FOUND)
target_link_libraries(knotes Qt5::X11Extras ${X11_LIBRARIES})
endif()
......
......@@ -29,6 +29,7 @@ target_link_libraries(kontact_knotesplugin
kdepim
noteshared
KF5::DNSSD
KF5::Mime
)
########### install files ###############
......
......@@ -6,5 +6,5 @@ set( knotes_knotesgrantleeprint_source knotesgrantleeprinttest.cpp )
add_executable( knotesgrantleeprinttest ${knotes_knotesgrantleeprint_source})
add_test(knotesgrantleeprinttest knotesgrantleeprinttest)
ecm_mark_as_test(knotesgrantleeprinttest)
target_link_libraries( knotesgrantleeprinttest Qt5::Test Qt5::Gui KF5::AkonadiCore knotesprivate KF5::Mime KF5::AkonadiNotes)
target_link_libraries( knotesgrantleeprinttest Qt5::Test Qt5::Gui KF5::AkonadiCore knotesprivate KF5::Mime KF5::AkonadiNotes Grantlee5::Templates)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment