kopia lustrzana https://github.com/raspberrypi/pico-playground
Porównaj commity
2 Commity
a43829c87d
...
d492e22859
Autor | SHA1 | Data |
---|---|---|
Juan Jose Carranza Garcia | d492e22859 | |
Juan Jose Carranza Garcia | a23a2bae6d |
|
@ -6,8 +6,8 @@ include(pico_sdk_import.cmake)
|
|||
# We also need PICO EXTRAS
|
||||
include(pico_extras_import.cmake)
|
||||
|
||||
# Include example_auto_set_url
|
||||
include(example_auto_set_url.cmake)
|
||||
# Include playground_auto_set_url
|
||||
include(playground_auto_set_url.cmake)
|
||||
|
||||
project(pico_playground C CXX)
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
set(PICO_EXTRAS_URL_BASE "https://github.com/raspberrypi/pico-extras/tree/HEAD")
|
||||
macro(example_auto_set_url TARGET)
|
||||
set(PICO_EXTRAS_URL_BASE "https://github.com/raspberrypi/pico-playground/tree/HEAD")
|
||||
macro(playground_auto_set_url TARGET)
|
||||
file(RELATIVE_PATH URL_REL_PATH "${PICO_EXTRAS_PATH}" "${CMAKE_CURRENT_LIST_DIR}")
|
||||
pico_set_program_url(${TARGET} "${PICO_EXTRAS_URL_BASE}/${URL_REL_PATH}")
|
||||
endmacro()
|
|
@ -10,5 +10,5 @@ if (TARGET hardware_reset)
|
|||
pico_add_extra_outputs(hello_reset)
|
||||
|
||||
# add url via pico_set_program_url
|
||||
example_auto_set_url(hello_reset)
|
||||
endif ()
|
||||
playground_auto_set_url(hello_reset)
|
||||
endif ()
|
||||
|
|
Ładowanie…
Reference in New Issue