CMakeLists.txt 2.23 KB
Newer Older
1 2
add_definitions("-DDBUS_COMPILATION")

3 4 5 6
set (dbus_send_SOURCES
	../../tools/dbus-print-message.c			
	../../tools/dbus-print-message.h			
	../../tools/dbus-send.c
7 8
	../../tools/tool-common.c
	../../tools/tool-common.h
9 10 11 12 13 14
)

set (dbus_monitor_SOURCES
	../../tools/dbus-monitor.c				
	../../tools/dbus-print-message.c			
	../../tools/dbus-print-message.h
15 16
	../../tools/tool-common.c
	../../tools/tool-common.h
17 18
)

19 20 21 22 23 24 25 26 27
set (dbus_test_tool_SOURCES
	../../tools/dbus-echo.c
	../../tools/dbus-spam.c
	../../tools/tool-common.c
	../../tools/tool-common.h
	../../tools/test-tool.c
	../../tools/test-tool.h
)

28 29 30 31 32 33
set (dbus_update_activation_environment_SOURCES
	../../tools/dbus-update-activation-environment.c
	../../tools/tool-common.c
	../../tools/tool-common.h
)

34 35 36 37 38
if (WIN32)
set (dbus_launch_SOURCES
	../../tools/dbus-launch-win.c
)
else (WIN32)
39 40
set (dbus_launch_SOURCES
	../../tools/dbus-launch.c
41 42
	../../tools/tool-common.c
	../../tools/tool-common.h
43
)
44
endif (WIN32)
45

46 47 48 49 50 51 52
if (DBUS_BUILD_X11)
set (dbus_launch_SOURCES
     ${dbus_launch_SOURCES}
     ../../tools/dbus-launch-x11.c
)
endif(DBUS_BUILD_X11)

53 54 55 56
set (dbus_cleanup_sockets_SOURCES
	../../tools/dbus-cleanup-sockets.c
)

57
add_executable(dbus-send ${dbus_send_SOURCES})
58
target_link_libraries(dbus-send ${DBUS_LIBRARIES})
59
install(TARGETS dbus-send ${INSTALL_TARGETS_DEFAULT_ARGS})
60

61 62
add_executable(dbus-test-tool ${dbus_test_tool_SOURCES})
target_link_libraries(dbus-test-tool ${DBUS_LIBRARIES})
63
install(TARGETS dbus-test-tool ${INSTALL_TARGETS_DEFAULT_ARGS})
64

65 66
add_executable(dbus-update-activation-environment ${dbus_update_activation_environment_SOURCES})
target_link_libraries(dbus-update-activation-environment ${DBUS_LIBRARIES})
67
install(TARGETS dbus-update-activation-environment ${INSTALL_TARGETS_DEFAULT_ARGS})
68

69
add_executable(dbus-launch ${dbus_launch_SOURCES})
70
target_link_libraries(dbus-launch ${DBUS_LIBRARIES})
71 72 73
if (DBUS_BUILD_X11)
  target_link_libraries(dbus-launch ${X11_LIBRARIES} )
endif (DBUS_BUILD_X11)
74
install(TARGETS dbus-launch ${INSTALL_TARGETS_DEFAULT_ARGS})
75

76
add_executable(dbus-monitor ${dbus_monitor_SOURCES})
77
target_link_libraries(dbus-monitor ${DBUS_LIBRARIES})
78
install(TARGETS dbus-monitor ${INSTALL_TARGETS_DEFAULT_ARGS})
79 80 81

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