CMakeLists.txt 592 B

123456789101112131415
  1. if(NOT ${IDF_TARGET} STREQUAL "linux")
  2. set(req lwip esp_event)
  3. else()
  4. set(req linux esp_event)
  5. endif()
  6. idf_component_register(SRCS "esp_http_client.c"
  7. "lib/http_auth.c"
  8. "lib/http_header.c"
  9. "lib/http_utils.c"
  10. INCLUDE_DIRS "include"
  11. PRIV_INCLUDE_DIRS "lib/include"
  12. # lwip is a public requirement because esp_http_client.h includes sys/socket.h
  13. REQUIRES ${req}
  14. PRIV_REQUIRES tcp_transport http_parser)