esp-idf/components/usb/test/CMakeLists.txt
Darian Leung b901cbd273 USB: Make unit test mock classes common
This commit moves the mock classes used for HCD unit tests into
a common header so that other layers of the USB Host stack can
also utilzie them for their own unit tests.
2021-06-28 15:02:58 +08:00

12 lines
371 B
CMake

idf_build_get_property(target IDF_TARGET)
#USB Host is currently only supported on ESP32-S2, ESP32S3 chips
if(NOT "${target}" MATCHES "^esp32s[2-3]")
return()
endif()
idf_component_register(SRC_DIRS "common" "hcd"
PRIV_INCLUDE_DIRS "../private_include" "common" "hcd"
PRIV_REQUIRES cmock usb test_utils
)