README.md
1# About
2This example shows how to use Conan to pull in the header files and static libraries
3for `nanopb` and incorporate them into a very simple CMake application.
4
5## How To Run
6
7### Before using this example
8The `conanfile.py` here imports `0.4.6` for `nanopb` and uses the packaged artifacts
9to build a simple application. You'll likely need to build this yourself, so
10checkout the tagged version and run `conan create .` in the base of this repository
11
12### Running line by line
13To run though the build one step at a time, use the following commands.
14```sh
15mkdir build
16cd build
17conan install ..
18conan source ..
19conan build ..
20conan package ..
21```
22The `conanfile.py` has been commented to explain the workflow
23
24### Installing to cache
25To have everything build at once and install to your local Conan cache
26```sh
27conan create .
28```
29