diff options
-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 |