espressif / esp-zigbee-sdk

Espressif Zigbee SDK
Apache License 2.0
173 stars 29 forks source link

how to reference external header files (TZ-1285) #475

Closed script0803 closed 1 week ago

script0803 commented 1 week ago

Question

Hi, I need to use libmodbus in my project. It has four ‘.h’ files. How can I reference it in my project?

I now put these four ‘.h’ files under libmodbus of main and reference them in the cmakelist file under the main path. INCLUDE_DIRS "libmodbus"

After reference, vscode can find these four files directly, but when I build, it prompts that the file cannot be found.

Additional context.

No response