CMakeLists.txt 706 B

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