1
0
mirror of https://github.com/tdaede/td-io.git synced 2025-02-23 21:53:37 +01:00
td-io/firmware/CMakeLists.txt

30 lines
737 B
CMake
Raw Normal View History

2021-03-02 01:32:44 -08:00
cmake_minimum_required(VERSION 3.13)
# initialize the SDK based on PICO_SDK_PATH
# note: this must happen before project()
include(pico_sdk_import.cmake)
project(td-io)
# initialize the Raspberry Pi Pico SDK
pico_sdk_init()
# rest of your project
add_executable(td-io
td-io.c
2021-05-09 00:39:40 -07:00
ws2812.c
2021-03-02 01:32:44 -08:00
)
2021-05-09 00:39:40 -07:00
pico_generate_pio_header(td-io ${CMAKE_CURRENT_LIST_DIR}/ws2812.pio OUTPUT_DIR ${CMAKE_CURRENT_LIST_DIR}/generated)
2021-03-02 01:32:44 -08:00
# Pull in our pico_stdlib which aggregates commonly used features
2021-05-09 00:39:40 -07:00
target_link_libraries(td-io pico_stdlib hardware_adc hardware_pio)
2021-03-02 01:32:44 -08:00
# enable usb output, disable uart output
pico_enable_stdio_usb(td-io 1)
pico_enable_stdio_uart(td-io 0)
# create map/bin/hex/uf2 file etc.
pico_add_extra_outputs(td-io)