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 add_executable(dbus-send ${dbus_send_SOURCES}) 37 target_link_libraries(dbus-send ${DBUS_LIBRARIES}) 38 install_targets(/bin dbus-send ) 39 40 add_executable(dbus-launch ${dbus_launch_SOURCES}) 41 target_link_libraries(dbus-launch ) 42 if (DBUS_BUILD_X11) 43 target_link_libraries(dbus-launch ${X11_LIBRARIES} ) 44 endif (DBUS_BUILD_X11) 45 install_targets(/bin dbus-launch ) 46 47 add_executable(dbus-monitor ${dbus_monitor_SOURCES}) 48 target_link_libraries(dbus-monitor ${DBUS_LIBRARIES}) 49 install_targets(/bin dbus-monitor ) 50