CMakeLists.txt 577 B

1234567891011121314
  1. # Embed the server root certificate into the final binary
  2. #
  3. # (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
  4. set(requires "")
  5. idf_build_get_property(target IDF_TARGET)
  6. if(${target} STREQUAL "linux")
  7. list(APPEND requires esp_stubs esp_event esp-tls esp_http_client protocol_examples_common nvs_flash)
  8. endif()
  9. idf_component_register(SRCS "esp_http_client_example.c"
  10. INCLUDE_DIRS "."
  11. REQUIRES ${requires}
  12. EMBED_TXTFILES howsmyssl_com_root_cert.pem
  13. postman_root_cert.pem)