2011-05-25 18:42:41 +02:00
|
|
|
This is C++ binding for 0MQ
|
2013-05-10 13:39:40 +02:00
|
|
|
|
|
|
|
The contribution policy is at: http://rfc.zeromq.org/spec:22
|
2017-06-26 17:26:01 +02:00
|
|
|
|
|
|
|
Build steps:
|
2017-10-10 23:10:40 +02:00
|
|
|
|
|
|
|
1. Build [libzmq](https://github.com/zeromq/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 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
|
2017-06-26 17:26:01 +02:00
|
|
|
|
|
|
|
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).
|
|
|
|
|
2017-10-10 23:10:40 +02:00
|
|
|
```
|
2017-06-26 17:26:01 +02:00
|
|
|
#find cppzmq wrapper, installed by make of cppzmq
|
|
|
|
find_package(cppzmq)
|
|
|
|
if(cppzmq_FOUND)
|
2018-04-08 12:58:55 +02:00
|
|
|
include_directories(${ZeroMQ_INCLUDE_DIR} ${cppzmq_INCLUDE_DIR})
|
2017-06-26 17:26:01 +02:00
|
|
|
target_link_libraries(*Your Project Name* ${cppzmq_LIBRARY})
|
|
|
|
endif()
|
2017-10-10 23:10:40 +02:00
|
|
|
```
|
2017-06-26 17:26:01 +02:00
|
|
|
|
|
|
|
|