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:

root
|--mbed-os...
|--subdir_1
     |--header_1
     |--source_1
     |--subdir_2
          |--header_2
          |--source_2

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.