Browse files

Updating build documentation

  • Loading branch information...
alanxz committed Nov 1, 2011
1 parent 9fed938 commit fa7234e190e9109c5b9b537f7409a33e353315ff
Showing with 21 additions and 3 deletions.
  1. +21 −3 README
@@ -47,9 +47,11 @@ to build the `librabbitmq` library and the example programs.
# Using cmake
-You will not need to clone the codegen repository, the build system
-will do it for you. You will however need a working python install,
-you will also need git installed
+You will need CMake
+You will need a working python install in your path.
+If you would like the build system to fetch the rabbitmq-codegen automatically
+you will need to have a working git install in your path. Otherwise you will
+need to checkout the rabbitmq-codegen as stated above.
Create a binary directory in a sibling directory from the directory
you cloned the rabbitmq-c repository
@@ -62,6 +64,22 @@ Build it
On linux: make
On win32: nmake or msbuild, or open it in visual studio and build from there
+Things you can pass to cmake to change the build:
+ -DRABBITMQ_CODEGEN_DIR=/path/to/rabbitmq-codegen/checkout - if you have your codegen
+ directory in a different place [Default is sibiling directory to source]
+ -DFETCH_CODEGEN_FROM_GIT=ON - if you want cmake to fetch the rabbitmq-codegen from
+ at build time. If this option is selected
+ -DRABBITMQ_CODEGEN_DIR will be ignored [Default is off]
+ -DCODEGEN_GIT_TAG=rabbitmq_v2_5_1 - specifies the tag to check out if using the
+ -DFETCH_CODEGEN_FROM_GIT option above. [Default is rabbitmq_v2_5_1]
+ -DBUILD_TOOLS=OFF build the programs in the tools directory
+ [Default is ON if the POPT library can be found]
+Other interesting flags to pass to CMake (see cmake docs for more info)
+ -DCMAKE_BUILD_TYPE - specify the type of build (Debug or Release)
+ -DCMAKE_INSTALL_PREFIX - specify where the install target puts files
## Running the examples
Arrange for a RabbitMQ or other AMQP server to be running on

0 comments on commit fa7234e

Please sign in to comment.