22 lines
474 B
Text
22 lines
474 B
Text
|
cmake_minimum_required(VERSION 3.13)
|
||
|
|
||
|
set(PICO_SDK_PATH ../pico-sdk)
|
||
|
|
||
|
# initialize the SDK based on PICO_SDK_PATH
|
||
|
# note: this must happen before project()
|
||
|
include(pico_sdk_import.cmake)
|
||
|
|
||
|
project(dp)
|
||
|
|
||
|
# initialize the Raspberry Pi Pico SDK
|
||
|
pico_sdk_init()
|
||
|
|
||
|
add_executable(dp
|
||
|
src/main.c
|
||
|
)
|
||
|
|
||
|
# Add pico_stdlib library which aggregates commonly used features
|
||
|
target_link_libraries(dp pico_stdlib)
|
||
|
|
||
|
# create map/bin/hex/uf2 file in addition to ELF.
|
||
|
pico_add_extra_outputs(dp)
|