diff --git a/CMakeLists.txt b/CMakeLists.txt index bbf0d12..98b130d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/example_auto_set_url.cmake b/playground_auto_set_url.cmake similarity index 87% rename from example_auto_set_url.cmake rename to playground_auto_set_url.cmake index 71e8d24..bcfba19 100644 --- a/example_auto_set_url.cmake +++ b/playground_auto_set_url.cmake @@ -1,5 +1,5 @@ set(PICO_EXTRAS_URL_BASE "https://github.com/raspberrypi/pico-extras/tree/HEAD") -macro(example_auto_set_url TARGET) +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() diff --git a/reset/hello_reset/CMakeLists.txt b/reset/hello_reset/CMakeLists.txt index 29519cd..14a9df4 100644 --- a/reset/hello_reset/CMakeLists.txt +++ b/reset/hello_reset/CMakeLists.txt @@ -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 () \ No newline at end of file + playground_auto_set_url(hello_reset) +endif ()