Skip to content

Commit 37275e7

Browse files
stevemk14ebrbluca
authored andcommitted
Updated readme to include build steps (#129)
* Updated readme to include build steps
1 parent fc990f1 commit 37275e7

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
11
This is C++ binding for 0MQ
22

33
The contribution policy is at: http://rfc.zeromq.org/spec:22
4+
5+
Build steps:
6+
1) Build libzmq via cmake. This does an out of source build and installs the build files
7+
download and unzip the lib, cd to directory
8+
mkdir build
9+
cd build
10+
cmake ..
11+
sudo make -j4 install
12+
13+
2) Build cppzmq via cmake. This does an out source build and installs the build files
14+
download and unzip the lib, cd to directory
15+
mkdir build
16+
cd build
17+
cmake ..
18+
sudo make -j4 install
19+
20+
Using this:
21+
22+
A cmake find package scripts is provided for you to easily include this library.
23+
Add these lines in your CMakeLists.txt to include the headers and library files of
24+
cpp zmq (which will also include libzmq for you).
25+
26+
#find cppzmq wrapper, installed by make of cppzmq
27+
find_package(cppzmq)
28+
if(cppzmq_FOUND)
29+
include_directories(${cppzmq_INCLUDE_DIR})
30+
target_link_libraries(*Your Project Name* ${cppzmq_LIBRARY})
31+
endif()
32+
33+

0 commit comments

Comments
 (0)