Files
Kyle Manna 6cedf928c8 examples: cmake_simple: Use auto discovered path
* No need to specify the src path and the module path. Let cmake do it.
2015-10-15 13:57:37 -07:00
..
2015-02-13 18:42:46 +02:00
2015-09-24 20:32:54 +03: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.