From 7f12071e5183b9afb10f9358be984383fe8128bf Mon Sep 17 00:00:00 2001 From: MReenen Date: Tue, 30 Aug 2022 14:52:23 +0200 Subject: [PATCH] remove some example stuff --- CMakeLists.txt | 3 --- blink/CMakeLists.txt | 3 --- example_auto_set_url.cmake | 5 ----- 3 files changed, 11 deletions(-) delete mode 100644 example_auto_set_url.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index ad4b877..ba023b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,12 +11,9 @@ if (PICO_SDK_VERSION_STRING VERSION_LESS "1.3.0") message(FATAL_ERROR "Raspberry Pi Pico SDK version 1.3.0 (or later) required. Your version is ${PICO_SDK_VERSION_STRING}") endif() -set(PICO_EXAMPLES_PATH ${PROJECT_SOURCE_DIR}) - # Initialize the SDK pico_sdk_init() -include(example_auto_set_url.cmake) # Add blink example add_subdirectory(blink) diff --git a/blink/CMakeLists.txt b/blink/CMakeLists.txt index 63ffbd3..51edaba 100644 --- a/blink/CMakeLists.txt +++ b/blink/CMakeLists.txt @@ -7,6 +7,3 @@ target_link_libraries(blink pico_stdlib) # create map/bin/hex file etc. pico_add_extra_outputs(blink) - -# add url via pico_set_program_url -example_auto_set_url(blink) diff --git a/example_auto_set_url.cmake b/example_auto_set_url.cmake deleted file mode 100644 index 59e6c71..0000000 --- a/example_auto_set_url.cmake +++ /dev/null @@ -1,5 +0,0 @@ -set(PICO_EXAMPLE_URL_BASE "https://github.com/raspberrypi/pico-examples/tree/HEAD") -macro(example_auto_set_url TARGET) - file(RELATIVE_PATH URL_REL_PATH "${PICO_EXAMPLES_PATH}" "${CMAKE_CURRENT_LIST_DIR}") - pico_set_program_url(${TARGET} "${PICO_EXAMPLE_URL_BASE}/${URL_REL_PATH}") -endmacro() \ No newline at end of file