Skip to content

Instantly share code, notes, and snippets.

@lucbettaieb
Created April 12, 2021 23:20
Show Gist options
  • Save lucbettaieb/70e6aca33ef4d3434aa1b7dc3fbeb684 to your computer and use it in GitHub Desktop.
Save lucbettaieb/70e6aca33ef4d3434aa1b7dc3fbeb684 to your computer and use it in GitHub Desktop.

NNG + CMake

  1. 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
  1. In your CMakeLists.txt in the project that you would like to link against NNG do:
find_package(nng REQUIRED)
  1. Then do a:
target_link_libraries(your_lib
  nng
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment