typical build environment configuration #213
-
Hi! I'm relatively new to esp-idf, and I'm wondering how people typically structure they're projects to include something like esp-idf-lib where multiple components have interconnected dependencies, such as the i2c version of the hh44780 and i2cdev. I have a CMakeList.txt that contains Which seems to satisfy my include for the hh44780.h (which I have an explicit include for) but hh44780 depends on i2cdev.h which it's unable to find. I have the esp-idf-lib in a different place than my esp-idf components so I can easily upgrade them individually. I was hoping to include them separately. I notice a lot of the examples don't need to have specific includedirs in their CMakeLists.txt so I'm wondering how people typically do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
ESP-IDF project contains at least two CMakeList.txt: one for the project and one for the
CMakeLists.txt in
And your project CMakeList.txt can contains links to other libaries, for example:
You can see an example here: https://github.com/UncleRus/EvLamp |
Beta Was this translation helpful? Give feedback.
ESP-IDF project contains at least two CMakeList.txt: one for the project and one for the
main
component:YourProject/main/CMakeList.txt
YourProject/CMakeList.txt
CMakeLists.txt in
main
usually contains only the sources of your project:And your project CMakeList.txt can contains links to other libaries, for example: