mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
7efb01846f
* spi cxx unit test (CATCH-based, on host) * added portmacro.h to driver mocking * added simple testing app to write/read SPI, using an MPU9250
19 lines
579 B
CMake
19 lines
579 B
CMake
idf_build_get_property(target IDF_TARGET)
|
|
|
|
set(srcs "esp_timer_cxx.cpp" "esp_exception.cpp" "gpio_cxx.cpp" "spi_cxx.cpp" "spi_host_cxx.cpp")
|
|
set(requires "esp_timer" "driver")
|
|
|
|
if(NOT ${target} STREQUAL "linux")
|
|
list(APPEND srcs
|
|
"i2c_cxx.cpp"
|
|
"esp_event_api.cpp"
|
|
"esp_event_cxx.cpp")
|
|
list(APPEND requires "esp_event")
|
|
endif()
|
|
|
|
idf_component_register(SRCS ${srcs}
|
|
INCLUDE_DIRS "include"
|
|
PRIV_INCLUDE_DIRS "private_include"
|
|
PRIV_REQUIRES freertos
|
|
REQUIRES ${requires})
|