Hi all,
I am new to the RPi Pico and am trying to understand how Pico Extras is installed using CMake. I have a project that needs to use it and I have manually downloaded Pico Extras and compiled successfully. But this isn't the best way of doing it. Looking at the Pico Extras Github it mentions using CMake to install it automatically, just like the Pico SDK does. But does not give enough information on how to do it for beginners.
I have added the define to my CMakeLists file and have the pico_extras_import.cmake file, but when I configure my CMake files the pico_extras_import file complains that there is no CMakeLists file in the build directory.
Define added to CMake:
set(PICO_EXTRAS_FETCH_FROM_GIT ON) # run before the line below
include(pico_extras_import.cmake)
Any help on achieving this would be grateful, thanks.
I am new to the RPi Pico and am trying to understand how Pico Extras is installed using CMake. I have a project that needs to use it and I have manually downloaded Pico Extras and compiled successfully. But this isn't the best way of doing it. Looking at the Pico Extras Github it mentions using CMake to install it automatically, just like the Pico SDK does. But does not give enough information on how to do it for beginners.
I have added the define to my CMakeLists file and have the pico_extras_import.cmake file, but when I configure my CMake files the pico_extras_import file complains that there is no CMakeLists file in the build directory.
Define added to CMake:
set(PICO_EXTRAS_FETCH_FROM_GIT ON) # run before the line below
include(pico_extras_import.cmake)
Any help on achieving this would be grateful, thanks.
Statistics: Posted by joenoonanSD — Mon Jan 13, 2025 4:16 pm — Replies 0 — Views 9