Use header files from sketch folder as Depency in library

Hi.

Im fairly new to the Arduino IDE, and I seem to fail to see how the Libraries are working.

I have a Library that works if I compile and upload it using the the cli with a custom made Makefile(Linux)

When the Library is moved to the "libraries" folder under the Arduino folder structure(Windows). I am able to use that library, beside that the library is designed to require a config file from the sketch project folder.

When i place the file (vsos.config.h) in the sketch project folder, then: fatal error:vsos.config.h No such file or directory

But if I move the file (vsos.config.h) to my library folder, all is working just fine.

Is this even possible in the Arduino IDE without the use of custom a custom makefile?

As far as I see it it should? but i might be wrong it has happen before(plenty of times :slight_smile: )

Regards
André

It is possible to do by either specifying the full path to the file or else editing the platform.txt for the board you're compiling for but neither of those are good solutions if you value portability of the library.