esp-idf/components/esp_adc_cal/CMakeLists.txt

18 lines
582 B
CMake
Raw Normal View History

2019-12-26 15:25:24 +08:00
idf_build_get_property(target IDF_TARGET)
if(${target} STREQUAL "esp32")
idf_component_register(SRCS "esp_adc_cal_esp32.c"
INCLUDE_DIRS "include"
REQUIRES driver efuse)
elseif(${target} STREQUAL "esp32s2")
2020-11-10 17:51:08 +11:00
idf_component_register(SRCS "esp_adc_cal_esp32s2.c"
INCLUDE_DIRS "include"
REQUIRES driver efuse)
2020-12-23 12:29:57 +08:00
elseif(${target} STREQUAL "esp32c3")
idf_component_register(SRCS "esp_adc_cal_esp32c3.c"
INCLUDE_DIRS "include"
REQUIRES driver efuse)
endif()