This is a very basic example for Raspberry Pi Pico.
Install CMake and cross compiler.
sudo apt install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi
Clone the repository.
git clone https://github.com/mshr-h/pico-cpp-minimum-example
cd pico-cpp-minimum-example
Create build directory.
mkdir build
cd build
Configure and build it.
IfPICO_SDK_PATH
environment variable isn't set, cmake will automatically download pico-sdk to the build
directory.
cmake ..
make -j`nproc`
Connect the Pico to the Host PC with pressing the BOOTSEL button.
Copy the binary to Raspberry Pi Pico.
cp blink.uf2 /path/to/pico_storage
The LED on the Pico will start blinking.