grpc/third_party/nanopb/examples/cmake_simple
Nicolas "Pixel" Noble 39937f7376 Putting nanopb files into third_party without being a submodule. 2016-09-23 06:28:04 +02:00
..
CMakeLists.txt Putting nanopb files into third_party without being a submodule. 2016-09-23 06:28:04 +02:00
README.txt Putting nanopb files into third_party without being a submodule. 2016-09-23 06:28:04 +02:00
simple.c Putting nanopb files into third_party without being a submodule. 2016-09-23 06:28:04 +02:00
simple.proto Putting nanopb files into third_party without being a submodule. 2016-09-23 06:28:04 +02:00

README.txt

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.