- Build and install NNG
git clone https://github.com/nanomsg/nng.git; (cd nng && mkdir build)
cd build
CFLAGS=-fPIC cmake -G Ninja ../; ninja; ninja install
- In your CMakeLists.txt in the project that you would like to link against NNG do:
find_package(nng REQUIRED)
- Then do a:
target_link_libraries(your_lib
nng
)