summaryrefslogtreecommitdiff
path: root/librabbitmq/CMakeLists.txt
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2012-05-21 14:31:58 -0400
committerMichael Steinert <mike.steinert@gmail.com>2012-05-23 09:18:05 -0600
commita1de9945125b9c06cdeb11e713258717b3179234 (patch)
treeda516ac143386317ae35eb31badbcb3860eab902 /librabbitmq/CMakeLists.txt
parent2f13e2e8c84f65d698830b7bc28591438b7176d5 (diff)
downloadrabbitmq-c-github-ask-a1de9945125b9c06cdeb11e713258717b3179234.tar.gz
Cleaning up Public API decorators on Win32
Removed duplicate #defines of AMQP_PUBLIC/AMQP_PRIVATE in amqp.h & amqp_private.h Split AMQP_PUBLIC into AMQP_PUBLIC_FUNCTION and AMQP_PUBLIC_VARIABLE Added AMQP_CALL to specify calling convention (__cdecl by default) Added -DAMQP_BUILD when building the library Added -DAMQP_STATIC when building the library statically (this is still incomplete on Win32, a installable amqp_config.h is required)
Diffstat (limited to 'librabbitmq/CMakeLists.txt')
-rw-r--r--librabbitmq/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/librabbitmq/CMakeLists.txt b/librabbitmq/CMakeLists.txt
index c26d164..6ccedba 100644
--- a/librabbitmq/CMakeLists.txt
+++ b/librabbitmq/CMakeLists.txt
@@ -79,6 +79,12 @@ set(RABBITMQ_SOURCES
${SOCKET_IMPL}/socket.h ${SOCKET_IMPL}/socket.c
)
+add_definitions(-DAMQP_BUILD)
+
+if (NOT BUILDING_SHARED_LIBS)
+ add_definitions(-DAMQP_STATIC)
+endif()
+
add_library(rabbitmq ${RABBITMQ_SOURCES})
if(WIN32)