Arm Mbed OS support forum

How to add a sub-directory to an Mbed CLI 2 project?

Hello, I’ve created an Mbed project using Mbed CLI 2 and I’m able to build it just fine. Now I need to add sub-directories containing header and source files but I have no clue how to configure the project so it compiles. I want something like this:


It feels like a silly question, but I couldn’t find how to achieve this. If somebody can show me how to do it or share a link to where this is explained in the documentation I would be very thankful.