[requires]
nng/1.8.0
NoteSimplest use case consuming this recipe and assuming CMake as your local build tool:
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.
[requires]
nng/1.8.0
[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("nng/1.8.0")
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:
nng
nng::nng
nng.pc
A simple use case using the CMake file name and the global target:
# ...
find_package(nng REQUIRED)
# ...
target_link_libraries(YOUR_TARGET nng::nng)
These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the nng
homepage listed above:
#include "nng/compat/nanomsg/bus.h"
#include "nng/compat/nanomsg/inproc.h"
#include "nng/compat/nanomsg/ipc.h"
#include "nng/compat/nanomsg/nn.h"
#include "nng/compat/nanomsg/pair.h"
#include "nng/compat/nanomsg/pipeline.h"
#include "nng/compat/nanomsg/pubsub.h"
#include "nng/compat/nanomsg/reqrep.h"
#include "nng/compat/nanomsg/survey.h"
#include "nng/compat/nanomsg/tcp.h"
#include "nng/compat/nanomsg/ws.h"
#include "nng/nng.h"
#include "nng/protocol/bus0/bus.h"
#include "nng/protocol/pair0/pair.h"
#include "nng/protocol/pair1/pair.h"
#include "nng/protocol/pipeline0/pull.h"
#include "nng/protocol/pipeline0/push.h"
#include "nng/protocol/pubsub0/pub.h"
#include "nng/protocol/pubsub0/sub.h"
#include "nng/protocol/reqrep0/rep.h"
#include "nng/protocol/reqrep0/req.h"
#include "nng/protocol/survey0/respond.h"
#include "nng/protocol/survey0/survey.h"
#include "nng/supplemental/http/http.h"
#include "nng/supplemental/tls/engine.h"
#include "nng/supplemental/tls/tls.h"
#include "nng/supplemental/util/idhash.h"
#include "nng/supplemental/util/options.h"
#include "nng/supplemental/util/platform.h"
#include "nng/transport/inproc/inproc.h"
#include "nng/transport/ipc/ipc.h"
#include "nng/transport/tcp/tcp.h"
#include "nng/transport/tls/tls.h"
#include "nng/transport/ws/websocket.h"
#include "nng/transport/zerotier/zerotier.h"