diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2024-07-08 01:04:09 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2024-07-08 01:05:01 +0300 |
commit | 87769ed51d8087ddc4a02705f39fe4f21431b66f (patch) | |
tree | cf3d12a293a24868641d8c086206da87e3c57ed3 /interfaces/CMakeLists.txt | |
parent | c7b0c7b88c1bebb038bd70f4995fc35771fa83c0 (diff) | |
download | xdg-desktop-portal-tde-87769ed51d8087ddc4a02705f39fe4f21431b66f.tar.gz xdg-desktop-portal-tde-87769ed51d8087ddc4a02705f39fe4f21431b66f.zip |
Added Email interface, minor refactoring
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'interfaces/CMakeLists.txt')
-rw-r--r-- | interfaces/CMakeLists.txt | 45 |
1 files changed, 13 insertions, 32 deletions
diff --git a/interfaces/CMakeLists.txt b/interfaces/CMakeLists.txt index 5a45e9f..d8e44c0 100644 --- a/interfaces/CMakeLists.txt +++ b/interfaces/CMakeLists.txt @@ -15,43 +15,24 @@ link_directories( ${DBUS_TQT_LIBRARY_DIRS} ) -set(interfaces filechooser) +set(interfaces filechooser email) +set(interface_HDRS introspectableInterface.h desktopNode.h dbusbaseNode.h) +set(interface_SRCS introspectableInterface.cpp desktopNode.cpp dbusbaseNode.cpp) foreach(interface IN LISTS interfaces) - set(interface_HDRS - introspectableInterface.h - ${interface}Interface.h - ${interface}Proxy.h - desktopNode.h - dbusbaseNode.h - ) - - set(interface_SRCS - introspectableInterface.cpp - ${interface}Interface.cpp - ${interface}Proxy.cpp - desktopNode.cpp - dbusbaseNode.cpp - ) - - set(interface_xml ${CMAKE_CURRENT_SOURCE_DIR}/${interface}.xml) - - add_custom_command( - OUTPUT ${interface_HDRS} ${interface_SRCS} - COMMAND ${DBUSXML2QT3_EXECUTABLE} ${interface_xml} - DEPENDS ${interface_xml} - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} - ) - - add_custom_target(${interface} DEPENDS ${interface_SRCS}) - - list(APPEND interfaces_SRCS ${interface_SRCS}) - + list(APPEND interface_HDRS ${interface}Interface.h ${interface}Proxy.h) + list(APPEND interface_SRCS ${interface}Interface.cpp ${interface}Proxy.cpp) endforeach() +add_custom_command( + OUTPUT ${interface_HDRS} ${interface_SRCS} + COMMAND ${DBUSXML2QT3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/interfaces.xml + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/interfaces.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} +) + tde_add_library(portalinterfaces STATIC_PIC AUTOMOC - DEPENDENCIES ${interfaces} - SOURCES ${interfaces_SRCS} + SOURCES ${interface_SRCS} LINK ${DBUS_TQT_LIBRARIES} ) |