Embedding Binary Data using CMake help

username
Posts: 477
Joined: Thu May 03, 2018 1:18 pm

Embedding Binary Data using CMake help

Postby username » 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:

Code: Select all

COMPONENT_SRCDIRS += WebsiteFiles
COMPONENT_EMBED_FILES := WebsiteFiles/index.html WebsiteFiles/favicon.ico WebsiteFiles/jquery-3.3.1.min.js
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???

Who is online

Users browsing this forum: Majestic-12 [Bot] and 136 guests