This example shows how to use Conan to pull in the header files and static libraries for nanopb
and incorporate them into a very simple CMake application.
The conanfile.py
here imports 0.4.6
for nanopb
and uses the packaged artifacts to build a simple application. You'll likely need to build this yourself, so checkout the tagged version and run conan create .
in the base of this repository
To run though the build one step at a time, use the following commands.
mkdir build cd build conan install .. conan source .. conan build .. conan package ..
The conanfile.py
has been commented to explain the workflow
To have everything build at once and install to your local Conan cache
conan create .