esp-idf/components/esp_timer/CMakeLists.txt

23 lines
667 B
CMake
Raw Normal View History

idf_build_get_property(target IDF_TARGET)
set(srcs "src/esp_timer.c"
2021-03-08 10:01:40 -05:00
"src/ets_timer_legacy.c"
"src/system_time.c"
"src/esp_timer_impl_common.c")
if(CONFIG_ESP_TIMER_IMPL_TG0_LAC)
list(APPEND srcs "src/esp_timer_impl_lac.c")
elseif(CONFIG_ESP_TIMER_IMPL_SYSTIMER)
list(APPEND srcs "src/esp_timer_impl_systimer.c")
endif()
2022-08-29 05:59:11 -04:00
if(CONFIG_SOC_SYSTIMER_SUPPORT_ETM)
list(APPEND srcs "src/esp_timer_etm.c")
endif()
idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS include
PRIV_INCLUDE_DIRS private_include
REQUIRES esp_common
PRIV_REQUIRES soc driver)