From 37275e78f2aec909b082592790b8e61b975c1cc7 Mon Sep 17 00:00:00 2001 From: Stephen Eckels Date: Mon, 26 Jun 2017 11:26:01 -0400 Subject: [PATCH] Updated readme to include build steps (#129) * Updated readme to include build steps --- README | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README b/README index cee62f0..62d13aa 100644 --- a/README +++ b/README @@ -1,3 +1,33 @@ This is C++ binding for 0MQ The contribution policy is at: http://rfc.zeromq.org/spec:22 + +Build steps: +1) Build libzmq via cmake. This does an out of source build and installs the build files + download and unzip the lib, cd to directory + mkdir build + cd build + cmake .. + sudo make -j4 install + +2) Build cppzmq via cmake. This does an out source build and installs the build files + download and unzip the lib, cd to directory + mkdir build + cd build + cmake .. + sudo make -j4 install + +Using this: + +A cmake find package scripts is provided for you to easily include this library. +Add these lines in your CMakeLists.txt to include the headers and library files of +cpp zmq (which will also include libzmq for you). + +#find cppzmq wrapper, installed by make of cppzmq +find_package(cppzmq) +if(cppzmq_FOUND) + include_directories(${cppzmq_INCLUDE_DIR}) + target_link_libraries(*Your Project Name* ${cppzmq_LIBRARY}) +endif() + +