17 lines
400 B
CMake
17 lines
400 B
CMake
add_executable(radio
|
|
main.cpp
|
|
)
|
|
|
|
include($ENV{RP2040_PATH}/lib/RF24/CMakeLists.txt)
|
|
|
|
# pull in common dependencies
|
|
target_link_libraries(radio pico_stdlib hardware_spi hardware_gpio)
|
|
target_link_libraries(radio RF24)
|
|
|
|
# enable usb output, disable uart output
|
|
pico_enable_stdio_usb(radio 1)
|
|
pico_enable_stdio_uart(radio 0)
|
|
|
|
# create map/bin/hex file etc.
|
|
pico_add_extra_outputs(radio)
|