Page 1 of 1

Adding additional components folder

Posted: Tue Jan 03, 2023 2:03 pm
by DominicS
Hello,
I been using ESP-idf with only one components folder for all drivers etc. But now I want to have two directories, which will have components. I know that I need to somehow link my main component (main.c folder location) to this new component directory and I need to use EXTRA_COMPONENT_DIRS command in CMakeLists.txtfile, but I don't know how and what exactly to do to link other component folders with my project folder, can someone tell me how to use CMakeLists.txt files and what I need to change to link them? And yes, I 've tried reading through Build system in ESP-idf documentation, but it didn't helped, I'm new to CMake files and all that stuff, so it's very confusing how to use them.
Thank you in advance.