Merge branch 'dbus-1.2'
[platform/upstream/dbus.git] / cmake / tools / CMakeLists.txt
1 project(tools)
2
3 set (dbus_send_SOURCES
4         ../../tools/dbus-print-message.c                        
5         ../../tools/dbus-print-message.h                        
6         ../../tools/dbus-send.c
7 )
8
9 set (dbus_monitor_SOURCES
10         ../../tools/dbus-monitor.c                              
11         ../../tools/dbus-print-message.c                        
12         ../../tools/dbus-print-message.h
13 )
14
15 if (WIN32)
16 set (dbus_launch_SOURCES
17         ../../tools/dbus-launch-win.c
18 )
19 else (WIN32)
20 set (dbus_launch_SOURCES
21         ../../tools/dbus-launch.c
22 )
23 endif (WIN32)
24
25 if (DBUS_BUILD_X11)
26 set (dbus_launch_SOURCES
27      ${dbus_launch_SOURCES}
28      ../../tools/dbus-launch-x11.c
29 )
30 endif(DBUS_BUILD_X11)
31
32 set (dbus_cleanup_sockets_SOURCES
33         ../../tools/dbus-cleanup-sockets.c
34 )
35
36 set (dbus_viewer_SOURCES
37         ../../tools/dbus-names-model.c                  
38         ../../tools/dbus-names-model.h                  
39         ../../tools/dbus-tree-view.c                    
40         ../../tools/dbus-tree-view.h                    
41         ../../tools/dbus-viewer.c
42 )
43
44 add_executable(dbus-send ${dbus_send_SOURCES})
45 target_link_libraries(dbus-send ${DBUS_LIBRARIES})
46 install_targets(/bin dbus-send )
47
48 add_executable(dbus-launch ${dbus_launch_SOURCES})
49 target_link_libraries(dbus-launch )
50 if (DBUS_BUILD_X11)
51   target_link_libraries(dbus-launch ${X11_LIBRARIES} )
52 endif (DBUS_BUILD_X11)
53 install_targets(/bin dbus-launch )
54
55 add_executable(dbus-monitor ${dbus_monitor_SOURCES})
56 target_link_libraries(dbus-monitor ${DBUS_LIBRARIES})
57 install_targets(/bin dbus-monitor )