Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
CMakeLists.txt | D | 11-Mar-2024 | 432 | 14 | 9 | |
README.txt | D | 11-Mar-2024 | 533 | 19 | 12 | |
simple.c | D | 11-Mar-2024 | 2.2 KiB | 72 | 34 | |
simple.proto | D | 11-Mar-2024 | 158 | 10 | 6 |
README.txt
1Nanopb example "simple" using CMake 2======================= 3 4This example is the same as the simple nanopb example but built using CMake. 5 6Example usage 7------------- 8 9On Linux, create a build directory and then call cmake: 10 11 nanopb/examples/cmake_simple$ mkdir build 12 nanopb/examples/cmake_simple$ cd build/ 13 nanopb/examples/cmake_simple/build$ cmake .. 14 nanopb/examples/cmake_simple/build$ make 15 16After that, you can run it with the command: ./simple 17 18On other platforms supported by CMake, refer to CMake instructions. 19