set TOP to build with esp32sx

This commit is contained in:
hathach 2021-06-12 23:02:41 +07:00
parent fd7b18a4f6
commit e4da606164
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,10 @@
cmake_minimum_required(VERSION 3.5)
# TOP is absolute path to root directory of TinyUSB git repo
# needed for esp32sx build. TOOD could be removed later on
set(TOP "../../..")
get_filename_component(TOP "${TOP}" REALPATH)
include(${CMAKE_CURRENT_SOURCE_DIR}/../../../hw/bsp/family_support.cmake)
# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)