Move the sdk project to a subdir.

Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
Mariano Uvalle 2025-05-18 23:11:20 -07:00
parent 5611462c08
commit b5796f0d6e
3 changed files with 1 additions and 1 deletions

View file

@ -0,0 +1,23 @@
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)