set PICO_TINYUSB_PATH for when building from within tinyusb without pico-sdk/tinyusb submodule

This commit is contained in:
graham sanderson 2021-05-31 10:58:14 -05:00
parent 5d161b79bb
commit 13951b43c2
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,10 @@ if (NOT TARGET _rp2040_family_inclusion_marker)
set(TOP "../../..")
get_filename_component(TOP "${TOP}" REALPATH)
if (NOT PICO_TINYUSB_PATH)
set(PICO_TINYUSB_PATH ${TOP})
endif()
# tinyusb_additions will hold our extra settings libraries
add_library(tinyusb_additions INTERFACE)