mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 20:56:01 -04:00
36 lines
875 B
CMake
36 lines
875 B
CMake
set(srcs
|
|
"adc_periph.c"
|
|
"dac_periph.c"
|
|
"dedic_gpio_periph.c"
|
|
"gpio_periph.c"
|
|
"i2c_periph.c"
|
|
"i2s_periph.c"
|
|
"interrupts.c"
|
|
"ledc_periph.c"
|
|
"pcnt_periph.c"
|
|
"regi2c_ctrl.c"
|
|
"rtc_clk.c"
|
|
"rtc_clk_init.c"
|
|
"rtc_init.c"
|
|
"rtc_io_periph.c"
|
|
"rtc_periph.c"
|
|
"rtc_pm.c"
|
|
"rtc_sleep.c"
|
|
"rtc_time.c"
|
|
"rtc_wdt.c"
|
|
"soc_memory_layout.c"
|
|
"spi_periph.c"
|
|
"touch_sensor_periph.c"
|
|
"uart_periph.c"
|
|
"usb_periph.c")
|
|
|
|
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" "${srcs}")
|
|
|
|
target_sources(${COMPONENT_LIB} PRIVATE "${srcs}")
|
|
target_include_directories(${COMPONENT_LIB} PUBLIC . include)
|
|
|
|
if(NOT CMAKE_BUILD_EARLY_EXPANSION)
|
|
set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/rtc_clk.c" PROPERTIES
|
|
COMPILE_FLAGS "-fno-jump-tables -fno-tree-switch-conversion")
|
|
endif()
|