mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-12 18:40:28 +01:00
6caa5d19d3
* Added overload constructor (c++11 only) taking iteratable object. It would be easier to use std::string, std::array etc to construct a message now. Making it a draft for now in case it is too greedy and needs to be more specialize. * Added equal and not euqal operator to message_t as a recommended and expected way of comparing objects in C++. * deprecated C style equal method as operator== should be used instead (point above). * Added message_t test covering all available message_t's constructors |
||
---|---|---|
cmake | ||
demo | ||
external/gtest-demo | ||
libzmq-pkg-config | ||
tests | ||
.gitignore | ||
.travis.yml | ||
ci_build.sh | ||
CMakeLists.txt | ||
cppzmqConfig.cmake.in | ||
LICENSE | ||
README.md | ||
version.sh | ||
zmq_addon.hpp | ||
zmq.hpp |
This is C++ binding for 0MQ
The contribution policy is at: http://rfc.zeromq.org/spec:22
Build steps:
-
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
-
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
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(${ZeroMQ_INCLUDE_DIR} ${cppzmq_INCLUDE_DIR})
target_link_libraries(*Your Project Name* ${cppzmq_LIBRARY})
endif()