Merge branch 'dbus-1.8'
[platform/upstream/dbus.git] / cmake / tools / CMakeLists.txt
1 add_definitions("-DDBUS_COMPILATION")
2
3 set (dbus_send_SOURCES
4         ../../tools/dbus-print-message.c                        
5         ../../tools/dbus-print-message.h                        
6         ../../tools/dbus-send.c
7         ../../tools/tool-common.c
8         ../../tools/tool-common.h
9 )
10
11 set (dbus_monitor_SOURCES
12         ../../tools/dbus-monitor.c                              
13         ../../tools/dbus-print-message.c                        
14         ../../tools/dbus-print-message.h
15         ../../tools/tool-common.c
16         ../../tools/tool-common.h
17 )
18
19 set (dbus_test_tool_SOURCES
20         ../../tools/dbus-echo.c
21         ../../tools/dbus-spam.c
22         ../../tools/tool-common.c
23         ../../tools/tool-common.h
24         ../../tools/test-tool.c
25         ../../tools/test-tool.h
26 )
27
28 set (dbus_update_activation_environment_SOURCES
29         ../../tools/dbus-update-activation-environment.c
30         ../../tools/tool-common.c
31         ../../tools/tool-common.h
32 )
33
34 if (WIN32)
35 set (dbus_launch_SOURCES
36         ../../tools/dbus-launch-win.c
37 )
38 else (WIN32)
39 set (dbus_launch_SOURCES
40         ../../tools/dbus-launch.c
41         ../../tools/tool-common.c
42         ../../tools/tool-common.h
43 )
44 endif (WIN32)
45
46 if (DBUS_BUILD_X11)
47 set (dbus_launch_SOURCES
48      ${dbus_launch_SOURCES}
49      ../../tools/dbus-launch-x11.c
50 )
51 endif(DBUS_BUILD_X11)
52
53 set (dbus_cleanup_sockets_SOURCES
54         ../../tools/dbus-cleanup-sockets.c
55 )
56
57 add_executable(dbus-send ${dbus_send_SOURCES})
58 target_link_libraries(dbus-send ${DBUS_LIBRARIES})
59 install_targets(/bin dbus-send )
60
61 add_executable(dbus-test-tool ${dbus_test_tool_SOURCES})
62 target_link_libraries(dbus-test-tool ${DBUS_LIBRARIES})
63 install_targets(/bin dbus-test-tool )
64
65 add_executable(dbus-update-activation-environment ${dbus_update_activation_environment_SOURCES})
66 target_link_libraries(dbus-update-activation-environment ${DBUS_LIBRARIES})
67 install_targets(/bin dbus-update-activation-environment )
68
69 add_executable(dbus-launch ${dbus_launch_SOURCES})
70 target_link_libraries(dbus-launch ${DBUS_LIBRARIES})
71 if (DBUS_BUILD_X11)
72   target_link_libraries(dbus-launch ${X11_LIBRARIES} )
73 endif (DBUS_BUILD_X11)
74 install_targets(/bin dbus-launch )
75
76 add_executable(dbus-monitor ${dbus_monitor_SOURCES})
77 target_link_libraries(dbus-monitor ${DBUS_LIBRARIES})
78 install_targets(/bin dbus-monitor )
79
80 # create the /var/lib/dbus directory for dbus-uuidgen
81 install(DIRECTORY DESTINATION var/lib/dbus)