2014-11-15 04:16:00 +02:00
|
|
|
add_subdirectory( sounds )
|
2022-09-27 14:20:51 +03:00
|
|
|
|
2014-11-15 04:16:00 +02:00
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
set(knotify_SRCS
|
2016-03-14 21:48:05 +00:00
|
|
|
main.cpp
|
|
|
|
knotify.cpp
|
|
|
|
notifybysound.cpp
|
|
|
|
notifybypopup.cpp
|
|
|
|
notifybylogfile.cpp
|
|
|
|
notifybytaskbar.cpp
|
|
|
|
notifybyexecute.cpp
|
|
|
|
notifybyktts.cpp
|
|
|
|
imageconverter.cpp
|
|
|
|
ksolidnotify.cpp
|
2014-11-15 04:16:00 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
set(knotifyplugin_SRCS
|
2015-09-01 04:37:19 +03:00
|
|
|
knotifyplugin.cpp
|
|
|
|
knotifyconfig.cpp
|
2014-11-15 04:16:00 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
set(knotifyplugin_HEADERS
|
2015-09-01 04:37:19 +03:00
|
|
|
knotifyplugin.h
|
|
|
|
knotifyconfig.h
|
2021-07-28 01:23:55 +03:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/knotify_export.h
|
2014-11-15 04:16:00 +02:00
|
|
|
)
|
|
|
|
|
2015-09-01 04:37:19 +03:00
|
|
|
add_executable( knotify ${knotify_SRCS})
|
2014-11-15 04:16:00 +02:00
|
|
|
|
2015-09-01 04:37:19 +03:00
|
|
|
add_library( knotifyplugin SHARED ${knotifyplugin_SRCS})
|
2014-11-15 04:16:00 +02:00
|
|
|
|
2022-09-29 15:23:32 +03:00
|
|
|
target_link_libraries( knotify ${KDE4_KDEUI_LIBS} ${KDE4_SOLID_LIBS} ${KDE4_KSPEECH_LIBS} knotifyplugin kmediaplayer)
|
2014-11-15 04:16:00 +02:00
|
|
|
|
|
|
|
target_link_libraries( knotifyplugin ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS})
|
|
|
|
|
2021-07-28 01:23:55 +03:00
|
|
|
generate_export_header(knotifyplugin BASE_NAME knotify)
|
2014-11-15 04:16:00 +02:00
|
|
|
|
|
|
|
set_target_properties(knotify PROPERTIES OUTPUT_NAME knotify4 )
|
|
|
|
install(TARGETS knotify ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
|
|
|
########### install files ###############
|
|
|
|
|
2020-02-08 19:29:32 +00:00
|
|
|
install( FILES kde.notifyrc DESTINATION ${KDE4_DATA_INSTALL_DIR}/kde )
|
|
|
|
install( FILES hardwarenotifications.notifyrc DESTINATION ${KDE4_DATA_INSTALL_DIR}/hardwarenotifications )
|
|
|
|
install( FILES knotify4.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR} )
|
2014-11-15 04:16:00 +02:00
|
|
|
|
2020-02-08 19:29:32 +00:00
|
|
|
install( FILES knotifynotifymethod.desktop DESTINATION ${KDE4_SERVICETYPES_INSTALL_DIR} )
|
2014-11-15 04:16:00 +02:00
|
|
|
install( TARGETS knotifyplugin ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
2020-02-08 19:29:32 +00:00
|
|
|
install( FILES ${knotifyplugin_HEADERS} DESTINATION ${KDE4_INCLUDE_INSTALL_DIR} )
|
2014-11-15 04:16:00 +02:00
|
|
|
|
|
|
|
########### D-Bus Autostart Services #########
|
|
|
|
|
2022-09-27 15:04:27 +03:00
|
|
|
kde4_add_dbus_service(org.kde.knotify.service.in)
|