working flake and blink example.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
84af3f0ab1
commit
9db9d5f192
8 changed files with 181 additions and 0 deletions
22
CMakeLists.txt
Normal file
22
CMakeLists.txt
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
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
|
||||
)
|
||||
|
||||
# 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue