CMakeLists.txt 1.23 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
set (dbus_send_SOURCES
	../../tools/dbus-print-message.c			
	../../tools/dbus-print-message.h			
	../../tools/dbus-send.c
)

set (dbus_monitor_SOURCES
	../../tools/dbus-monitor.c				
	../../tools/dbus-print-message.c			
	../../tools/dbus-print-message.h
11 12
	../../tools/tool-common.c
	../../tools/tool-common.h
13 14
)

15 16 17 18 19
if (WIN32)
set (dbus_launch_SOURCES
	../../tools/dbus-launch-win.c
)
else (WIN32)
20 21 22
set (dbus_launch_SOURCES
	../../tools/dbus-launch.c
)
23
endif (WIN32)
24

25 26 27 28 29 30 31
if (DBUS_BUILD_X11)
set (dbus_launch_SOURCES
     ${dbus_launch_SOURCES}
     ../../tools/dbus-launch-x11.c
)
endif(DBUS_BUILD_X11)

32 33 34 35
set (dbus_cleanup_sockets_SOURCES
	../../tools/dbus-cleanup-sockets.c
)

36
add_executable(dbus-send ${dbus_send_SOURCES})
37
target_link_libraries(dbus-send ${DBUS_LIBRARIES})
38
install_targets(/bin dbus-send )
39

40 41
add_executable(dbus-launch ${dbus_launch_SOURCES})
target_link_libraries(dbus-launch )
42 43 44
if (DBUS_BUILD_X11)
  target_link_libraries(dbus-launch ${X11_LIBRARIES} )
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 51 52

# create the /var/lib/dbus directory for dbus-uuidgen
install(DIRECTORY DESTINATION var/lib/dbus)