diff options
author | Alan Antonuk <aega@med.umich.edu> | 2011-10-25 15:56:33 -0400 |
---|---|---|
committer | Alan Antonuk <aega@med.umich.edu> | 2011-10-25 15:56:33 -0400 |
commit | 475dfafb97e7b8cf0e26d16037dac1274cdab7c9 (patch) | |
tree | 031c356124d9f2133daeeb3359e0bdd2121e7748 | |
parent | 4e203c00084a870c395112688bbbfc077a486c41 (diff) | |
download | rabbitmq-c-github-ask-475dfafb97e7b8cf0e26d16037dac1274cdab7c9.tar.gz |
Adding documentation on how to use CMake build
-rw-r--r-- | README | 22 | ||||
-rw-r--r-- | README.windows | 5 |
2 files changed, 25 insertions, 2 deletions
@@ -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 diff --git a/README.windows b/README.windows index cfff065..2774f19 100644 --- a/README.windows +++ b/README.windows @@ -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 |