-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
26 lines (20 loc) · 784 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
26 lines (20 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
idf_build_get_property(target IDF_TARGET)
set(srcs "linenoise/async_linenoise.c"
"async_console_io.c"
"async_console_log.c"
"async_console.c")
set(requires console vfs)
if(${target} STREQUAL "linux")
else()
list(APPEND requires esp_stdio)
endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}
REQUIRES "${requires}"
PRIV_REQUIRES esp_driver_uart
esp_driver_usb_serial_jtag
esp_usb_cdc_rom_console
)
if(CONFIG_COMPILER_STATIC_ANALYZER AND CMAKE_C_COMPILER_ID STREQUAL "GNU") # TODO IDF-10085
target_compile_options(${COMPONENT_LIB} PRIVATE "-fno-analyzer")
endif()