DBus interface in order to connect DBus applications to the p≡p engine.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

52 lines
1.5 KiB

project(pEpDBusAdapter)
include_directories(${PROJECT_SOURCE_DIR}/types)
add_subdirectory(types)
add_custom_command(
OUTPUT pep-server-glue.h
COMMAND /usr/bin/dbusxx-xml2cpp ${CMAKE_CURRENT_SOURCE_DIR}/pep-introspect.xml --adaptor=pep-server-glue.h
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/pep-introspect.xml
PRE_BUILD
VERBATIM
)
add_custom_command(
OUTPUT pep-client-glue.h
COMMAND /usr/bin/dbusxx-xml2cpp ${CMAKE_CURRENT_SOURCE_DIR}/pep-introspect.xml --proxy=pep-client-glue.h
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/pep-introspect.xml
PRE_BUILD
VERBATIM
)
add_library(pEpDBusAdapterClient SHARED pep-client.cpp)
target_link_libraries(pEpDBusAdapterClient
pEpDBusAdapterTypes
)
set_target_properties(pEpDBusAdapterClient PROPERTIES
CXX_VISIBILITY_PRESET default
VISIBILITY_INLINES_HIDDEN 0
)
add_library(pEpDBusAdapterServer SHARED pep-server.cpp)
target_link_libraries(pEpDBusAdapterServer
pEpDBusAdapterTypes
)
set_target_properties(pEpDBusAdapterServer PROPERTIES
CXX_VISIBILITY_PRESET default
VISIBILITY_INLINES_HIDDEN 0
)
add_executable(pep-dbus-server server.cpp)
target_link_libraries(pep-dbus-server pEpDBusAdapterServer dbus-c++-1)
add_executable(tests tests.cpp)
target_link_libraries(tests pEpDBusAdapterClient dbus-c++-1)
configure_file(security.pep.service.in ${CMAKE_CURRENT_BINARY_DIR}/security.pep.service)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/security.pep.service
DESTINATION ${KDE_INSTALL_DBUSSERVICEDIR})
install(TARGETS pep-dbus-server pEpDBusAdapterServer pEpDBusAdapterClient pEpDBusAdapterTypes)