Using generated headers

Unfortunately, the Arduino IDE does not provide for this. There have been some feature requests for it. This one would probably be the most interesting:

(Arduino CLI provides the build system for all the official Arduino development software, so a feature implemented there propagates to all the tools)

Arduino CLI does provide a arduino-cli compile --library <library path> flag you can use to specify additional library folders:

So if you don't mind using a command line tool that would probably help you out.

Another option might be to store the library in the sketch folder, but install it in the standard libraries folder via a symlink.


By the way, are you aware of this project?