CMakeLists.txt 571 B

1234567891011121314151617
  1. idf_build_get_property(target IDF_TARGET)
  2. set(srcs "esp_timer_cxx.cpp" "esp_exception.cpp" "gpio_cxx.cpp" "i2c_cxx.cpp" "spi_cxx.cpp" "spi_host_cxx.cpp")
  3. set(requires "esp_timer" "driver")
  4. if(NOT ${target} STREQUAL "linux")
  5. list(APPEND srcs
  6. "esp_event_api.cpp"
  7. "esp_event_cxx.cpp")
  8. list(APPEND requires "esp_event")
  9. endif()
  10. idf_component_register(SRCS ${srcs}
  11. INCLUDE_DIRS "include"
  12. PRIV_INCLUDE_DIRS "private_include"
  13. PRIV_REQUIRES freertos
  14. REQUIRES ${requires})