kopia lustrzana https://github.com/raspberrypi/pico-playground
Include example_aute_set_url.cmake
rodzic
e1701f74e4
commit
a43829c87d
|
@ -6,6 +6,9 @@ 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)
|
||||
|
||||
project(pico_playground C CXX)
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
set(PICO_EXTRAS_URL_BASE "https://github.com/raspberrypi/pico-extras/tree/HEAD")
|
||||
macro(example_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()
|
Ładowanie…
Reference in New Issue