[zeromq-dev] Example for building against ZMQ with CMake + UDP Multicast Support

Luca Boccassi luca.boccassi at gmail.com
Tue Jan 10 17:28:55 CET 2017

On Tue, 2017-01-10 at 17:23 +0100, Stephan Opfer wrote:
> On 10.01.2017 17:21, Kevin Sapper wrote:
> > there is a cmake option "ENABLE_DRAFTS" which should do the same. 
> Do I have to include this option into the compilation of my project, too? Or is it just for compiling libzmq with CMake?

As always on *NIX, use pkg-config and your life will be much easier.


g++ `pkg-config --cflags --libs libzmq` foo.cpp -o foo

Or if you don't install via packages:

g++ `PKG_CONFIG_PATH=/path/to/pkgconfig pkg-config --cflags --libs libzmq` foo.cpp -o foo

Even easier, we provide repositories and packages for the most used
distros and architectures, including Ubuntu. So if you add this
repository and then run apt-get update; apt-get install libzmq3-dev and
then everything will be in the right path for your application to find.

Append to /etc/apt/sources.list :
deb http://download.opensuse.org/repositories/home:/zeromq:/git-draft/xUbuntu_16.04/ ./

Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20170110/a22a3b1b/attachment.sig>

More information about the zeromq-dev mailing list