diff options
author | gregory guy <g-gregory@gmx.fr> | 2019-03-27 13:42:45 +0100 |
---|---|---|
committer | gregory guy <g-gregory@gmx.fr> | 2019-04-02 14:46:58 +0200 |
commit | a05e5694affb43bc53faa52ab813ff0b5c548919 (patch) | |
tree | bf6f7e8b7ce2b8651ee4cca3e1e4b9c594fc8249 /src/daemon | |
parent | d011596fa60698d5c7eb06eb2b67400ba2647e7c (diff) | |
download | kdbusnotification-a05e5694affb43bc53faa52ab813ff0b5c548919.tar.gz kdbusnotification-a05e5694affb43bc53faa52ab813ff0b5c548919.zip |
conversion to the cmake building system
Signed-off-by: gregory guy <g-gregory@gmx.fr>
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/CMakeLists.txt | 50 |
1 files changed, 50 insertions, 0 deletions
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} +) |