esp-idf/examples/openthread/ot_cli/main/CMakeLists.txt
Shu Chen 50b6b674cf openthread: simplify ot_cli example configuration
Use single ESP_EXTENSION_IN_OPENTHREAD_CLI config option to enable/disable
extended features. It will be pure ot_cli example if it's disabled.
2021-07-19 19:37:49 +08:00

9 lines
245 B
CMake

set(srcs "esp_ot_cli.c")
if(CONFIG_OPENTHREAD_CLI_ESP_EXTENSION)
list(APPEND srcs "esp_ot_cli_extension.c" "esp_ot_tcp_socket.c" "esp_ot_udp_socket.c")
endif()
idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS ".")