24 lines
387 B
CMake
24 lines
387 B
CMake
cmake_minimum_required(VERSION 3.13)
|
|
|
|
include(pico_sdk_import.cmake)
|
|
|
|
project(flashwrite C CXX ASM)
|
|
|
|
pico_sdk_init()
|
|
|
|
add_executable(flashwrite
|
|
flashwrite.c
|
|
)
|
|
|
|
target_link_libraries(flashwrite
|
|
pico_stdlib
|
|
pico_cyw43_arch_none
|
|
hardware_flash
|
|
hardware_sync
|
|
)
|
|
|
|
pico_enable_stdio_usb(flashwrite 1)
|
|
pico_enable_stdio_uart(flashwrite 0)
|
|
|
|
pico_add_extra_outputs(flashwrite)
|