summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2011-10-30 22:35:11 -0400
committerAlan Antonuk <alan.antonuk@gmail.com>2011-10-30 22:35:11 -0400
commit7715ad8f53930d3e5956d219cfc0233eea59a2b5 (patch)
tree3761c1f522e162585fa86fbfe9a2a3cf0aa8390d /tools
parent6738de940bb901f81671c3851b92bca297f5c571 (diff)
downloadrabbitmq-c-7715ad8f53930d3e5956d219cfc0233eea59a2b5.tar.gz
Adding CMake files to build tools, but not enabled
Did not enable because it requires popt and cmake needs to know how to the popt headers and library
Diffstat (limited to 'tools')
-rw-r--r--tools/CMakeLists.txt34
1 files changed, 34 insertions, 0 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
new file mode 100644
index 0000000..f29a217
--- /dev/null
+++ b/tools/CMakeLists.txt
@@ -0,0 +1,34 @@
+include_directories(${librabbitmq_SOURCE_DIR} ${librabbitmq_BINARY_DIR})
+
+if (WIN32)
+ set(PLATFORM_DIR win32)
+ set(PLATFORM_SRCS
+ windows/compat.c
+ )
+else (WIN32)
+ set(PLATFORM_DIR unix)
+endif (WIN32)
+
+include_directories(${PLATFORM_DIR})
+
+set(COMMON_SRCS
+ common.h
+ common.c
+ ${PLATFORM_SRCS}
+ )
+
+add_executable(amqp-publish publish.c ${COMMON_SRCS})
+target_link_libraries(amqp-publish rabbitmq)
+
+add_executable(amqp-get get.c ${COMMON_SRCS})
+target_link_libraries(amqp-get rabbitmq)
+
+add_executable(amqp-consume consume.c ${PLATFORM_DIR}/process.c ${COMMON_SRCS})
+target_link_libraries(amqp-consume rabbitmq)
+
+add_executable(amqp-declare-queue declare_queue.c ${COMMON_SRCS})
+target_link_libraries(amqp-declare-queue rabbitmq)
+
+add_executable(amqp-delete-queue delete_queue.c ${COMMON_SRCS})
+target_link_libraries(amqp-delete-queue rabbitmq)
+