arm/rp2040: CMake build for Raspberry Pi RP2040 implemented

- CMake added board Raspberry Pi Pico

- Added the entry:

     CMake,raspberrypi-pico:bmp280

   to the file arm-06.dat.

- Moved the search for the Python 3 interpreter to the
  root CMakefile to avoid unnecessary repetition.

Signed-off-by: simbit18 <simbit18@gmail.com>
This commit is contained in:
simbit18
2025-09-22 16:28:20 +02:00
committed by Xiang Xiao
parent 2080617a8e
commit 4c3dbed5b5
9 changed files with 483 additions and 3 deletions

View File

@@ -53,6 +53,13 @@ if(POLICY CMP0169)
cmake_policy(SET CMP0169 OLD)
endif()
# Find Python 3 interpreter
find_package(Python3 REQUIRED COMPONENTS Interpreter)
if(NOT Python3_Interpreter_FOUND)
message(FATAL_ERROR "Did NOT find Python interpreter.")
endif()
# Basic CMake configuration ##################################################
set(CMAKE_CXX_EXTENSIONS OFF)