summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2011-10-30 20:59:48 -0400
committerAlan Antonuk <alan.antonuk@gmail.com>2011-10-30 20:59:48 -0400
commit41e7c93d4270a099b880ca564ce7f1d2ccdf0e65 (patch)
tree483e94bcbb0fed25e178968810530e6a39644804 /examples
parent475dfafb97e7b8cf0e26d16037dac1274cdab7c9 (diff)
downloadrabbitmq-c-github-ask-41e7c93d4270a099b880ca564ce7f1d2ccdf0e65.tar.gz
Building the rest of the example programs
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt35
1 files changed, 34 insertions, 1 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 170a3ef..15148fd 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -1,4 +1,37 @@
include_directories(${librabbitmq_SOURCE_DIR} ${librabbitmq_BINARY_DIR})
-add_executable(amqp_sendstring amqp_sendstring.c utils.h utils.c)
+if (WIN32)
+ set(PLATFORM_DIR win32)
+else (WIN32)
+ set(PLATFORM_DIR unix)
+endif (WIN32)
+
+set(COMMON_SRCS
+ utils.h
+ utils.c
+ ${PLATFORM_DIR}/platform_utils.c
+ )
+
+add_executable(amqp_sendstring amqp_sendstring.c ${COMMON_SRCS})
target_link_libraries(amqp_sendstring rabbitmq)
+
+add_executable(amqp_exchange_declare amqp_exchange_declare.c ${COMMON_SRCS})
+target_link_libraries(amqp_exchange_declare rabbitmq)
+
+add_executable(amqp_listen amqp_listen.c ${COMMON_SRCS})
+target_link_libraries(amqp_listen rabbitmq)
+
+add_executable(amqp_producer amqp_producer.c ${COMMON_SRCS})
+target_link_libraries(amqp_producer rabbitmq)
+
+add_executable(amqp_consumer amqp_consumer.c ${COMMON_SRCS})
+target_link_libraries(amqp_consumer rabbitmq)
+
+add_executable(amqp_unbind amqp_unbind.c ${COMMON_SRCS})
+target_link_libraries(amqp_unbind rabbitmq)
+
+add_executable(amqp_bind amqp_bind.c ${COMMON_SRCS})
+target_link_libraries(amqp_bind rabbitmq)
+
+add_executable(amqp_listenq amqp_listenq.c ${COMMON_SRCS})
+target_link_libraries(amqp_listenq rabbitmq)