1
0
mirror of https://github.com/whowechina/aic_pico.git synced 2025-02-07 15:01:28 +01:00

Cmake knows to update built-time

This commit is contained in:
whowechina 2024-05-19 11:28:53 +08:00
parent 23d2cbc408
commit e25a709cfb

View File

@ -25,6 +25,9 @@ function(make_firmware board board_def)
pico_add_extra_outputs(${board})
add_custom_command(TARGET ${board} PRE_BUILD
COMMAND touch ${CMAKE_CURRENT_SOURCE_DIR}/cli.c)
add_custom_command(TARGET ${board} POST_BUILD
COMMAND cp ${board}.uf2 ${CMAKE_CURRENT_LIST_DIR}/..)
endfunction()