e7fd4257bf
To use -ldbus, the value of ${DBus_LIBARARY_DIR} would also need to be
added to the linker search paths.
To get around this, simply use the imported target by pkgconfig.
[1] b8b30ba571
41 lines
1.1 KiB
CMake
41 lines
1.1 KiB
CMake
kdeconnect_add_plugin(kdeconnect_sendnotifications)
|
|
|
|
target_sources(kdeconnect_sendnotifications PRIVATE
|
|
sendnotificationsplugin.cpp
|
|
notificationslistener.cpp
|
|
notifyingapplication.cpp
|
|
)
|
|
|
|
target_link_libraries(kdeconnect_sendnotifications
|
|
kdeconnectcore
|
|
KF6::I18n
|
|
Qt::Gui
|
|
KF6::IconThemes
|
|
KF6::ConfigCore
|
|
)
|
|
|
|
|
|
if(WIN32)
|
|
target_sources(kdeconnect_sendnotifications PRIVATE windowsnotificationslistener.cpp)
|
|
target_link_libraries(kdeconnect_sendnotifications runtimeobject windowsapp)
|
|
else()
|
|
target_sources(kdeconnect_sendnotifications PRIVATE dbusnotificationslistener.cpp)
|
|
target_link_libraries(kdeconnect_sendnotifications PkgConfig::DBus)
|
|
endif()
|
|
|
|
# Config
|
|
kdeconnect_add_kcm(kdeconnect_sendnotifications_config)
|
|
|
|
ki18n_wrap_ui(kdeconnect_sendnotifications_config sendnotifications_config.ui)
|
|
target_sources(kdeconnect_sendnotifications_config PRIVATE
|
|
sendnotifications_config.cpp
|
|
notifyingapplication.cpp
|
|
notifyingapplicationmodel.cpp
|
|
)
|
|
|
|
target_link_libraries(kdeconnect_sendnotifications_config
|
|
kdeconnectcore
|
|
kdeconnectpluginkcm
|
|
KF6::I18n
|
|
KF6::KCMUtils
|
|
)
|