Adding additional components folder

DominicS
Posts: 2
Joined: Tue Jan 03, 2023 1:55 pm

Adding additional components folder

Postby DominicS » Tue Jan 03, 2023 2:03 pm

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.

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 71 guests