kopia lustrzana https://github.com/espressif/esp-idf
29 wiersze
720 B
CMake
29 wiersze
720 B
CMake
target_include_directories(${COMPONENT_LIB} PUBLIC .)
|
|
|
|
set(srcs "rtc_clk_init.c"
|
|
"rtc_clk.c"
|
|
"pmu_param.c"
|
|
"pmu_init.c"
|
|
"pmu_sleep.c"
|
|
"rtc_time.c"
|
|
"chip_info.c"
|
|
)
|
|
|
|
if(NOT BOOTLOADER_BUILD)
|
|
list(APPEND srcs "esp_crypto_lock.c")
|
|
|
|
if(NOT CONFIG_APP_BUILD_TYPE_PURE_RAM_APP)
|
|
list(APPEND srcs "mspi_timing_config.c")
|
|
endif()
|
|
|
|
if(CONFIG_ESP_SYSTEM_MEMPROT_FEATURE)
|
|
list(APPEND srcs "esp_memprot.c" "../esp_memprot_conv.c")
|
|
endif()
|
|
|
|
endif()
|
|
|
|
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" "${srcs}")
|
|
|
|
target_sources(${COMPONENT_LIB} PRIVATE "${srcs}")
|
|
target_include_directories(${COMPONENT_LIB} PUBLIC . include private_include)
|