mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
13 lines
379 B
CMake
13 lines
379 B
CMake
idf_build_get_property(target IDF_TARGET)
|
|
|
|
set(srcs "esp_adc_cal_common.c")
|
|
set(src_target "esp_adc_cal_${target}.c")
|
|
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${src_target}")
|
|
list(APPEND srcs ${src_target})
|
|
endif()
|
|
|
|
idf_component_register(SRCS ${srcs}
|
|
INCLUDE_DIRS include
|
|
REQUIRES driver
|
|
PRIV_REQUIRES efuse)
|