Skip to content

Building Examples

Phil Schatzmann edited this page Oct 16, 2025 · 1 revision

You can enable or disable building the example sketches with CMake. By default examples are built. To disable all examples:

cmake -S . -B build -DLNA_BUILD_EXAMPLES=OFF
cmake --build build -j2

You can also specify a comma-separated list of example folder names to build using EXAMPLES_LIST. If left empty, all examples are built when BUILD_EXAMPLES=ON.

Example: build only the desktop control-point examples

cmake -S . -B build -DLNA_BUILD_EXAMPLES=ON -DEXAMPLES_LIST="control-point-light,control-point-light-fast"
cmake --build build -j2
Clone this wiki locally