Permalink
Browse files

Adding documentation on how to use CMake build

  • Loading branch information...
1 parent 4e203c0 commit 475dfafb97e7b8cf0e26d16037dac1274cdab7c9 @alanxz alanxz committed Oct 25, 2011
Showing with 25 additions and 2 deletions.
  1. +21 −1 README
  2. +4 −1 README.windows
View
22 README
@@ -25,10 +25,13 @@ the necessary pieces:
hg clone http://hg.rabbitmq.com/rabbitmq-c/
You will also need a recent python with the simplejson module
-installed, and the GNU autotools (autoconf, automake, libtool etc).
+installed, and the GNU autotools (autoconf, automake, libtool etc)
+or as an alternative CMake
## Building the code
+# Using autoconf
+
Once you have all the prerequisites, change to the `rabbitmq-c`
directory and run
@@ -42,6 +45,23 @@ by
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
+
+Create a binary directory in a sibling directory from the directory
+you cloned the rabbitmq-c repository
+ mkdir bin-rabbitmq-c
+
+Run CMake in the binary directory
+ cmake /path/to/source/directory
+
+Build it
+ On linux: make
+ On win32: nmake or msbuild, or open it in visual studio and build from there
+
## Running the examples
Arrange for a RabbitMQ or other AMQP server to be running on
View
@@ -1,6 +1,6 @@
# Using rabbitmq-c on Windows
-There are two approaches to building rabbitmq-c under Windows:
+There are three approaches to building rabbitmq-c under Windows:
- Build using the MinGW/MSYS (MinGW/MSYS is a port of the GNU
toolchain and utilities to Windows, including the gcc compiler).
@@ -19,6 +19,9 @@ There are two approaches to building rabbitmq-c under Windows:
this approach is that the rabbitmq-c tools cannot be built, due to
dependencies on other libraries.
+- Build using CMake, which will cover building with MSVC or MinGW
+ See the README file for details on how to build with cmake.
+
## Common steps

0 comments on commit 475dfaf

Please sign in to comment.