summaryrefslogtreecommitdiffstats
path: root/tinyusb/examples/device/board_test/src/CMakeLists.txt
blob: e4e1f4e9a96d059ab7c48c1742f789857cecd2a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# FAMILY = esp32sx
idf_component_register(SRCS "main.c"
                    INCLUDE_DIRS "."
                    REQUIRES freertos soc)
                    
file(TO_NATIVE_PATH "${TOP}/hw/bsp/${FAMILY}/boards/${BOARD}/board.cmake" board_cmake)

if(EXISTS ${board_cmake})
    include(${board_cmake})
endif()

idf_component_get_property( FREERTOS_ORIG_INCLUDE_PATH freertos ORIG_INCLUDE_PATH)
target_include_directories(${COMPONENT_TARGET} PUBLIC
  "${FREERTOS_ORIG_INCLUDE_PATH}"
  "${TOP}/hw"
  "${TOP}/src"
)