mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
26 lines
619 B
CMake
26 lines
619 B
CMake
set(srcs "stdin_out.c"
|
|
"addr_from_stdin.c"
|
|
"connect.c"
|
|
"wifi_connect.c")
|
|
|
|
if(CONFIG_EXAMPLE_PROVIDE_WIFI_CONSOLE_CMD)
|
|
list(APPEND srcs "console_cmd.c")
|
|
endif()
|
|
|
|
if(CONFIG_EXAMPLE_CONNECT_ETHERNET)
|
|
list(APPEND srcs "eth_connect.c")
|
|
endif()
|
|
|
|
|
|
idf_component_register(SRCS "${srcs}"
|
|
INCLUDE_DIRS "include"
|
|
PRIV_REQUIRES esp_netif driver)
|
|
|
|
if(CONFIG_EXAMPLE_PROVIDE_WIFI_CONSOLE_CMD)
|
|
idf_component_optional_requires(PRIVATE console)
|
|
endif()
|
|
|
|
if(CONFIG_EXAMPLE_CONNECT_ETHERNET)
|
|
idf_component_optional_requires(PRIVATE esp_eth)
|
|
endif()
|