Consumer example

A runnable end-to-end consumer of the generated decoders, driven by the rapidproto_generate() CMake helper. Two executables, one schema (proto/message.proto, which imports proto/types.proto so the import closure and the depfile are exercised too):

Building

In-tree (the default when the RapidProto tests are enabled; the build is driven by CMakeLists.txt), from the repository root:

cmake --preset gcc && cmake --build --preset gcc
ctest --test-dir build/gcc -R rapidproto_example    # runs both executables as tests

Standalone, against an installed RapidProto - this is the find_package consumer CI builds to keep the installed packaging surface honest:

cmake --install <build-dir> --prefix <prefix>       # install RapidProto first
cmake -S examples/consumer -B example-build -DCMAKE_PREFIX_PATH=<prefix>
cmake --build example-build && ctest --test-dir example-build