summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgregory guy <g-gregory@gmx.fr>2019-03-27 13:42:45 +0100
committergregory guy <g-gregory@gmx.fr>2019-04-02 14:46:58 +0200
commita05e5694affb43bc53faa52ab813ff0b5c548919 (patch)
treebf6f7e8b7ce2b8651ee4cca3e1e4b9c594fc8249 /src
parentd011596fa60698d5c7eb06eb2b67400ba2647e7c (diff)
downloadkdbusnotification-a05e5694.tar.gz
kdbusnotification-a05e5694.zip
conversion to the cmake building system
Signed-off-by: gregory guy <g-gregory@gmx.fr>
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}
+)