CMakeLists.txt 447 B

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