This repository has been archived on 2025-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
rp2040_projects/pio/pio_blink/CMakeLists.txt
graham sanderson 46078742c7 Initial Release
2021-01-20 16:45:01 -06:00

14 lines
593 B
CMake

add_executable(pio_blink)
# by default the header is generated into the build dir
pico_generate_pio_header(pio_blink ${CMAKE_CURRENT_LIST_DIR}/blink.pio)
# however, alternatively you can choose to generate it somewhere else (in this case in the source tree for check in)
#pico_generate_pio_header(pio_blink ${CMAKE_CURRENT_LIST_DIR}/blink.pio OUTPUT_DIR ${CMAKE_CURRENT_LIST_DIR})
target_sources(pio_blink PRIVATE blink.c)
target_link_libraries(pio_blink PRIVATE pico_stdlib hardware_pio)
pico_add_extra_outputs(pio_blink)
# add url via pico_set_program_url
example_auto_set_url(pio_blink)