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

31 wiersze
723 B
CMake
Czysty Zwykły widok Historia

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