CMake update to copy uf2 to build_uf2 folder

This commit is contained in:
Nicholas G
2022-08-18 21:25:28 -04:00
parent f4e10e0651
commit e41cde432a
3 changed files with 7 additions and 2 deletions
Binary file not shown.
+1 -1
View File
@@ -1,6 +1,6 @@
# Pico-Game-Controller
Manually copied built uf2 file for quick flashing.
Built uf2 file for quick flashing. CMake should copy to here upon build.
Quick how-to flash:
+6 -1
View File
@@ -17,4 +17,9 @@ target_link_libraries(Pico_Game_Controller PRIVATE
hardware_dma
hardware_irq)
pico_add_extra_outputs(Pico_Game_Controller)
pico_add_extra_outputs(Pico_Game_Controller)
add_custom_command(TARGET Pico_Game_Controller
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_BINARY_DIR}/src/Pico_Game_Controller.uf2 ${PROJECT_SOURCE_DIR}/build_uf2/Pico_Game_Controller.uf2
)