summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgregory guy <g-gregory@gmx.fr>2019-03-27 13:42:45 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-04-02 18:32:57 +0200
commit296992d6691edbbba3db0f06ecff077594c02c11 (patch)
tree673b47444eadc4c5054669e51c3bf8ecb7883d19 /src
parent7a2175069df90a901a0ded9cd83c5207b053286e (diff)
downloadkdbusnotification-296992d6691edbbba3db0f06ecff077594c02c11.tar.gz
kdbusnotification-296992d6691edbbba3db0f06ecff077594c02c11.zip
conversion to the cmake building system
Signed-off-by: gregory guy <g-gregory@gmx.fr> (cherry picked from commit a05e5694affb43bc53faa52ab813ff0b5c548919)
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt9
-rw-r--r--src/daemon/CMakeLists.txt50
2 files changed, 59 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..f5fa9c5
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,9 @@
+add_subdirectory( daemon )
+
+
+##### other data
+
+install(
+ FILES kdbusnotification-autostart.desktop
+ DESTINATION ${AUTOSTART_INSTALL_DIR}
+)
diff --git a/src/daemon/CMakeLists.txt b/src/daemon/CMakeLists.txt
new file mode 100644
index 0000000..b1119c8
--- /dev/null
+++ b/src/daemon/CMakeLists.txt
@@ -0,0 +1,50 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${DBUS_INCLUDE_DIRS}
+ ${DBUS-GLIB_INCLUDE_DIRS}
+ ${GLIB2_INCLUDE_DIRS}
+ ${GTK2_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### notification-daemon-tde (executable)
+
+set( _header notificationdaemon-dbus-glue.h )
+set( _xml notificationdaemon.xml )
+
+add_custom_command(
+ OUTPUT ${_header}
+ COMMAND ${_DBUS_TOOL}
+ ARGS --mode=glib-server --prefix=notification_daemon_tde ${CMAKE_CURRENT_SOURCE_DIR}/${_xml} > ${_header}
+ DEPENDS ${_xml}
+)
+
+set_source_files_properties(
+ daemon.cpp
+ PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_header}
+)
+
+tde_add_executable( notification-daemon-tde AUTOMOC
+
+ SOURCES
+ daemon.cpp
+ LINK
+ tdecore-shared
+ tdeio-shared
+ tdeui-shared
+ ${DBUS_LIBRARIES}
+ ${DBUS-GLIB_LIBRARIES}
+ ${GLIB2_LIBRARIES}
+ ${GTK2_LIBRARIES}
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)