CMakeLists.txt 669 B

1234567891011121314151617181920212223242526
  1. set(srcs "stdin_out.c"
  2. "addr_from_stdin.c"
  3. "connect.c"
  4. "wifi_connect.c"
  5. "protocol_examples_utils.c")
  6. if(CONFIG_EXAMPLE_PROVIDE_WIFI_CONSOLE_CMD)
  7. list(APPEND srcs "console_cmd.c")
  8. endif()
  9. if(CONFIG_EXAMPLE_CONNECT_ETHERNET)
  10. list(APPEND srcs "eth_connect.c")
  11. endif()
  12. idf_component_register(SRCS "${srcs}"
  13. INCLUDE_DIRS "include"
  14. PRIV_REQUIRES esp_netif driver esp_wifi vfs)
  15. if(CONFIG_EXAMPLE_PROVIDE_WIFI_CONSOLE_CMD)
  16. idf_component_optional_requires(PRIVATE console)
  17. endif()
  18. if(CONFIG_EXAMPLE_CONNECT_ETHERNET)
  19. idf_component_optional_requires(PRIVATE esp_eth)
  20. endif()