pi_pico/bootloader/cmake/CMakeLists.txt
Mohamed Salem 4f1199a3e6 Scaffold bootloader project with TODO checklist
New project under bootloader/ with the same structure as
color_switcher: Dockerfile, docker-compose, modular CMake, and
APP_BOOT + SYS_ECU stub components. Reuses common/ submodules for
MCU_UART, MCU_USB, HAL_COM, STD_TYPES.

TODO.md lists all open design decisions (interface, protocol, flash
layout, entry trigger, integrity checks, flash strategy) and the
implementation tasks that depend on them.
2026-04-18 23:37:33 +02:00

28 lines
820 B
CMake

# ============================================================================
# Top-level CMakeLists.txt for the bootloader project
# ============================================================================
# Same phase-ordered structure as color_switcher.
cmake_minimum_required(VERSION 3.13)
get_filename_component(PROJECT_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/.." ABSOLUTE)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake_config)
include(project_config)
include(mcu_config)
mcu_init()
project(${PROJECT_NAME}
VERSION ${PROJECT_VERSION}
LANGUAGES ${PROJECT_LANGUAGES})
mcu_sdk_config()
include(sources_config)
add_executable(${PROJECT_NAME} ${PROJECT_SOURCES})
target_include_directories(${PROJECT_NAME} PRIVATE ${PROJECT_INCLUDE_DIRS})
mcu_link_target(${PROJECT_NAME})