Commit 4235f517 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Clean up the CMake build system a bit

Most porting to use ecm_add_test and target_include_directories,
couple fixes of include paths and linking libraries. We try to make
sure that libs and apps don't have any other include paths other than
their own and those provided by their dependencies.

This will be useful in future if we try to split the kdepim repo.
parent 8f10ded3
......@@ -2,10 +2,6 @@
########### next target ###############
include_directories(
${Grantlee_INCLUDE_DIRS}
)
set(kontact_knotesplugin_PART_SRCS
knotes_kontact_plugin_debug.cpp
knotes_plugin.cpp
......@@ -14,7 +10,7 @@ set(kontact_knotesplugin_PART_SRCS
knotesiconview.cpp
knoteslistwidgetsearchline.cpp
knoteswidget.cpp
knoteseditdialog.cpp
knoteseditdialog.cpp
knotesselectdeletenotesdialog.cpp
)
......@@ -25,15 +21,14 @@ qt5_add_dbus_interfaces(kontact_knotesplugin_interface_SRCS org.kde.kontact.KNot
add_library(kontact_knotesplugin MODULE ${kontact_knotesplugin_PART_SRCS} ${kontact_knotesplugin_interface_SRCS} )
target_link_libraries(kontact_knotesplugin
knotesprivate
KF5::CalendarCore
KF5::CalendarUtils
KF5::KontactInterface
target_link_libraries(kontact_knotesplugin
knotesprivate
KF5::CalendarCore
KF5::CalendarUtils
KF5::KontactInterface
kdepim
noteshared
noteshared
KF5::DNSSD
)
########### install files ###############
......
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