1
0
mirror of https://github.com/whowechina/aic_pico.git synced 2024-09-24 02:58:21 +02:00

Only build UF2 when it's standalone

This commit is contained in:
whowechina 2024-03-16 11:33:01 +08:00
parent 1ab2bec642
commit 1b08db2543

View File

@ -7,6 +7,10 @@ link_libraries(pico_multicore pico_stdlib hardware_i2c hardware_spi
tinyusb_device tinyusb_board)
function(make_firmware board board_def)
if(NOT CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
return()
endif()
add_executable(${board}
main.c save.c config.c commands.c light.c keypad.c
cli.c usb_descriptors.c)