rp2040-playground/with_sdk/rp2350/blink/CMakeLists.txt
jmug b5796f0d6e Move the sdk project to a subdir.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
2025-05-18 23:11:20 -07:00

23 lines
554 B
CMake

cmake_minimum_required(VERSION 3.13...3.27)
# initialize pico-sdk from submodule
# note: this must happen before project()
include(../../../pico-sdk/pico_sdk_init.cmake)
project(my_project)
# initialize the Raspberry Pi Pico SDK
set(PICO_BOARD, "pico")
pico_sdk_init()
# rest of your project
add_executable(hello_world
hello_world.c
led.s
)
# Add pico_stdlib library which aggregates commonly used features
target_link_libraries(hello_world pico_stdlib)
# create map/bin/hex/uf2 file in addition to ELF.
pico_add_extra_outputs(hello_world)