Embedding Binary Data using CMake help
Posted: Wed Jun 05, 2019 5:12 am
When using make, embedding files was straightforward to me. If I wanted to add index.html & favicon.ico all I had to put this in the component.mk file:
Trying to switch over to the new CMake, this is not so clear to me how to do it.
I was reading here, but its to vague for me to understand.
https://docs.espressif.com/projects/esp ... inary-data
Could someone provide some assistance on how to embed files for the new CMake please.
Anyone???
Code: Select all
COMPONENT_SRCDIRS += WebsiteFiles
COMPONENT_EMBED_FILES := WebsiteFiles/index.html WebsiteFiles/favicon.ico WebsiteFiles/jquery-3.3.1.min.js
I was reading here, but its to vague for me to understand.
https://docs.espressif.com/projects/esp ... inary-data
Could someone provide some assistance on how to embed files for the new CMake please.
Anyone???