czmq/4.2.1

High-level C binding for ZeroMQ
Recipe info
2023-11-15

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
czmq/4.2.1

Using czmq

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
czmq/4.2.1
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("czmq/4.2.1")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): czmq
  • CMake target name(s): czmq-static
  • pkg-config file name(s): libczmq.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(czmq REQUIRED)
# ...
target_link_libraries(YOUR_TARGET czmq-static)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the czmq homepage listed above:

#include "czmq.h"
#include "czmq_library.h"
#include "czmq_prelude.h"
#include "readme.txt"
#include "sha1.h"
#include "sha1.inc_c"
#include "slre.h"
#include "slre.inc_c"
#include "zactor.h"
#include "zarmour.h"
#include "zauth.h"
#include "zbeacon.h"
#include "zcert.h"
#include "zcertstore.h"
#include "zchunk.h"
#include "zclock.h"
#include "zconfig.h"
#include "zdigest.h"
#include "zdir.h"
#include "zdir_patch.h"
#include "zfile.h"
#include "zframe.h"
#include "zgossip.h"
#include "zgossip_engine.inc"
#include "zgossip_msg.h"
#include "zhash.h"
#include "zhash_primes.inc"
#include "zhashx.h"
#include "ziflist.h"
#include "zlist.h"
#include "zlistx.h"
#include "zloop.h"
#include "zmonitor.h"
#include "zmsg.h"
#include "zpoller.h"
#include "zproxy.h"
#include "zrex.h"
#include "zsock.h"
#include "zsock_option.inc"
#include "zstr.h"
#include "zsys.h"
#include "zuuid.h"