esp-idf/components/soc/esp32h2/CMakeLists.txt

32 lines
750 B
CMake
Raw Normal View History

set(srcs
"adc_periph.c"
2021-08-27 00:18:12 -04:00
"dedic_gpio_periph.c"
"gdma_periph.c"
"gpio_periph.c"
2022-05-17 01:47:14 -04:00
"sdm_periph.c"
"interrupts.c"
"spi_periph.c"
"ledc_periph.c"
"rmt_periph.c"
"i2s_periph.c"
"i2c_periph.c"
"uart_periph.c"
"temperature_sensor_periph.c"
"timer_periph.c")
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" "${srcs}")
target_sources(${COMPONENT_LIB} PRIVATE "${srcs}")
2021-09-02 08:48:39 -04:00
set(inc_path "." "include")
2021-09-02 08:48:39 -04:00
if(target STREQUAL "esp32h2")
if(CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_1)
list(APPEND inc_path "include/rev1")
2021-09-02 08:48:39 -04:00
elseif(CONFIG_IDF_TARGET_ESP32H2_BETA_VERSION_2)
list(APPEND inc_path "include/rev2")
2021-09-02 08:48:39 -04:00
endif()
endif()
target_include_directories(${COMPONENT_LIB} PUBLIC ${inc_path})