unplugged-system/external/nanopb-c/examples/cmake_relpath
2025-10-06 13:59:42 +00:00
..
proto Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
CMakeLists.txt Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
README.txt Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
simple.c Initial commit: AOSP 14 with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00

Nanopb example "simple" using CMake
=======================

This example is the same as the simple nanopb example but built using CMake.

Example usage
-------------

On Linux, create a build directory and then call cmake:

    nanopb/examples/cmake_simple$ mkdir build
    nanopb/examples/cmake_simple$ cd build/
    nanopb/examples/cmake_simple/build$ cmake ..
    nanopb/examples/cmake_simple/build$ make

After that, you can run it with the command: ./simple

On other platforms supported by CMake, refer to CMake instructions.