I was wondering how a (by custom-target) generated headerfile can be added to the build-sources.
I am outputting the headerfile in a custom directory in the
$BUILD_DIR, from which I would like it to be included as a dependency/library.
As esp is using cmake, their system doesn’t communicate verry wel with platformio’s SCons implementation. so using filters/includes in the PIO-env will not work.
I hoped the
env.BuildSources defenition as described in external resources documentation would help out, but that also doesn’t work unfortunately.
So is there a way to include an external source through an extra-script with esp? Preferably it should be added with intellisense as well.
Thanks in advance!