- Implementde server process termination from client UI
[qtrapids] / dbus / CMakeLists.txt
1 SET(SOURCES com.ixonos.qtrapids.xml)
2 SET(PROXY_SRC proxy.h proxy.cpp)
3 SET(SERVER_SRC server.h server.cpp)
4
5 SET(PROXY_TARGET 
6   ${CMAKE_HOME_DIRECTORY}/src/client/proxy.h 
7   ${CMAKE_HOME_DIRECTORY}/src/client/proxy.cpp)
8
9 SET(SERVER_TARGET 
10   ${CMAKE_HOME_DIRECTORY}/src/server/server.h 
11   ${CMAKE_HOME_DIRECTORY}/src/server/server.cpp)
12
13 SET(GENERATED_FILES ${PROXY_SRC} ${SERVER_SRC})
14
15 ADD_CUSTOM_COMMAND(OUTPUT ${GENERATED_FILES} 
16   COMMAND qdbusxml2cpp -a server -c QtRapidsServer -i "qtrapids/dbus.hpp" -p proxy ${SOURCES}
17   COMMAND cp ${PROXY_SRC} ${CMAKE_HOME_DIRECTORY}/src/client
18   COMMAND cp ${SERVER_SRC} ${CMAKE_HOME_DIRECTORY}/src/server
19   DEPENDS ${SOURCES}
20   COMMENT "DBus API sources")
21
22
23 ADD_CUSTOM_TARGET(dbusapi ALL DEPENDS ${GENERATED_FILES})
24