The getting started document for the Raspberry Pi Pico ( https://datasheets.raspberrypi.org/pico/getting-started-with-pico.pdf ) describes how to set up your own projects in C/C++ for the Pico and how to use cmake to build your project.
Unfortunately it…