question
How to add header files and source files?
detail
I am trying to write some programs using Mbed studio, but the default structure of Mbed OS is like this:
.
|-- BUILD
| `-- NUCLEO_F103RB
|-- main.cpp
|-- mbed-os
| |-- CONTRIBUTING.md
| |-- DOXYGEN_FRONTPAGE.md
| |-- Jenkinsfile
| |-- LICENSE-apache-2.0.txt
| |-- LICENSE.md
| |-- README.md
| |-- TESTS
| |-- TEST_APPS
| |-- UNITTESTS
| |-- cmsis
| |-- components
| |-- docs
| |-- doxyfile_options
| |-- doxygen_options.json
| |-- drivers
| |-- events
| |-- features
| |-- hal
| |-- logo.png
| |-- mbed.h
| |-- platform
| |-- requirements.txt
| |-- rtos
| |-- targets
| `-- tools
`-- mbed-os.lib
I want to modify the directory structure to this:
.
|-- BUILD
| `-- NUCLEO_F103RB
|-- include
|-- lib
| `-- pwm_sample
|-- mbed-os
| |-- CONTRIBUTING.md
| |-- DOXYGEN_FRONTPAGE.md
| |-- Jenkinsfile
| |-- LICENSE-apache-2.0.txt
| |-- LICENSE.md
| |-- README.md
| |-- TESTS
| |-- TEST_APPS
| |-- UNITTESTS
| |-- cmsis
| |-- components
| |-- docs
| |-- doxyfile_options
| |-- doxygen_options.json
| |-- drivers
| |-- events
| |-- features
| |-- hal
| |-- logo.png
| |-- mbed.h
| |-- platform
| |-- requirements.txt
| |-- rtos
| |-- targets
| `-- tools
|-- mbed-os.lib
|-- src
| `-- main.cpp
`-- test
I want to put the app driver I wrote in the lib directory, and put the main.cpp I wrote in the src directory, instead of putting all the files in the root directory, otherwise the structure of the code is very messy. But how should I add the src, lib, test, include directories to the project? I know keil can set include path, but Mbed Studio does not have instructions in this regard.