How to add extra include directory to PlatformIO project
In platformio.ini
, add the following build flags:
build_flags = -I../my-extra-include-dir
By using this method, you can also add multiple include directories:
build_flags = -I../my-first-include-dir -I../my-second-include-dir
All paths are relative to the directory where platformio.ini
resides in.