CMakeLists.txt 768 B

12345678910111213141516171819202122232425
  1. set(srcs "src/wifi_config.c"
  2. "src/wifi_scan.c"
  3. "src/manager.c"
  4. "src/handlers.c"
  5. "src/scheme_console.c"
  6. "proto-c/wifi_config.pb-c.c"
  7. "proto-c/wifi_scan.pb-c.c"
  8. "proto-c/wifi_constants.pb-c.c")
  9. if(CONFIG_ESP_WIFI_SOFTAP_SUPPORT)
  10. list(APPEND srcs "src/scheme_softap.c")
  11. endif()
  12. if(CONFIG_BT_ENABLED)
  13. if(CONFIG_BT_BLUEDROID_ENABLED OR CONFIG_BT_NIMBLE_ENABLED)
  14. list(APPEND srcs
  15. "src/scheme_ble.c")
  16. endif()
  17. endif()
  18. idf_component_register(SRCS "${srcs}"
  19. INCLUDE_DIRS include
  20. PRIV_INCLUDE_DIRS src proto-c ../protocomm/proto-c
  21. REQUIRES lwip protocomm
  22. PRIV_REQUIRES protobuf-c bt json esp_timer esp_wifi)