• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

protos/29-Dec-2025-106

src/29-Dec-2025-7234

.gitignoreD29-Dec-20257 21

CMakeLists.txtD29-Dec-2025316 149

README.mdD29-Dec-2025835 2924

conanfile.pyD29-Dec-20251.5 KiB4328

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