CMakeLists.txt 1.13 KB
Newer Older
1
project(tools)
2 3 4 5 6 7 8 9 10 11 12 13 14

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
)

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 32 33 34 35 36

set (dbus_cleanup_sockets_SOURCES
	../../tools/dbus-cleanup-sockets.c
)

set (dbus_viewer_SOURCES
	../../tools/dbus-names-model.c			
	../../tools/dbus-names-model.h			
	../../tools/dbus-tree-view.c			
	../../tools/dbus-tree-view.h			
	../../tools/dbus-viewer.c
)

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

41 42 43
add_executable(dbus-launch ${dbus_launch_SOURCES})
target_link_libraries(dbus-launch )
install_targets(/bin dbus-launch )
44

45 46 47
add_executable(dbus-monitor ${dbus_monitor_SOURCES})
target_link_libraries(dbus-monitor ${DBUS_1})
install_targets(/bin dbus-monitor )
48

49
set_target_properties(dbus-send dbus-launch dbus-monitor PROPERTIES DEBUG_POSTFIX d)