1idf_build_get_property(target IDF_TARGET) 2 3set(srcs "esp_adc_cal_common.c") 4set(src_target "${target}/esp_adc_cal.c") 5if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${src_target}") 6 list(APPEND srcs ${src_target}) 7endif() 8 9idf_component_register(SRCS ${srcs} 10 INCLUDE_DIRS include 11 REQUIRES driver 12 PRIV_REQUIRES efuse) 13