CMakeLists.txt 539 B

1234567891011121314151617
  1. idf_build_get_property(target IDF_TARGET)
  2. set(srcs "src/esp_timer.c"
  3. "src/ets_timer_legacy.c"
  4. "src/system_time.c")
  5. if(CONFIG_ESP_TIMER_IMPL_TG0_LAC)
  6. list(APPEND srcs "src/esp_timer_impl_lac.c")
  7. elseif(CONFIG_ESP_TIMER_IMPL_SYSTIMER)
  8. list(APPEND srcs "src/esp_timer_impl_systimer.c")
  9. endif()
  10. idf_component_register(SRCS "${srcs}"
  11. INCLUDE_DIRS include
  12. PRIV_INCLUDE_DIRS private_include
  13. REQUIRES esp_common
  14. PRIV_REQUIRES soc driver)