25 lines
546 B
CMake
25 lines
546 B
CMake
cmake_minimum_required(VERSION 3.13...3.27)
|
|
|
|
# initialize the SDK based on PICO_SDK_PATH
|
|
# note: this must happen before project()
|
|
include(pico_sdk_import.cmake)
|
|
|
|
project(Bad_Apple!!_Pico)
|
|
|
|
# initialize the Raspberry Pi Pico SDK
|
|
pico_sdk_init()
|
|
|
|
# rest of your project
|
|
add_executable(bad_apple_pico
|
|
src/main.c
|
|
)
|
|
|
|
# Add pico_stdlib library which aggregates commonly used features
|
|
target_link_libraries(bad_apple_pico
|
|
pico_stdlib
|
|
hardware_spi
|
|
)
|
|
|
|
|
|
# create map/bin/hex/uf2 file in addition to ELF.
|
|
pico_add_extra_outputs(bad_apple_pico)
|