mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-12 18:40:28 +01:00
07b583a99a
Solution: add dependency on cppzmq |
||
---|---|---|
cmake | ||
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(${cppzmq_INCLUDE_DIR})
target_link_libraries(*Your Project Name* ${cppzmq_LIBRARY})
endif()