How can I use my already existent header files for a PIO project?

Hello,

I’m looking for some advise how I can use my own custom headers in some pio projects.
Background:

I created some headers files for WiFi credentials and Geo-location settings.
I’m using these header files already in some Arduino projects.
These header files are located in /mnt/nas_data/projects/Arduino/myHeaders/.
The header files have the names mySSID-Guest.h and TZLocation.h.
I tried already the setup with the help of a local folder ($HOME/myHeaders).
Any attempts using lib_deps entry with file://... and symlink:// were not successful.
The documentation of PlatformIO didn’t help much either.
Perhaps someone can give me a short code sample how I can link to the header files on the NAS.
Any help is much appreciated.
TIA

If they’re just header files without .cpp files then a much simpler -I (“add include search path”) flag for the compiler will also do the job. No need to put a library.json or library.properties then or adhere to any folder structures.

build_flags =
  -I /mnt/nas_data/projects/Arduino/myHeaders

(docs) should be fine in the platformio.ini.

Thanks for the tip Max.
platformio.ini has now the following entry:
build_flags =
-I /mnt/nas_data/source_code/Arduino_ws/projects/libraries/myHeaders

When compiling I’m receiving the following error message:

(this is the original location of the header files).

What did I do wrong?
Thanks

I continued testing the modification(s) in PlatformIO.ini and found out that on my include path (to the header files) the closing backslash (/) was missing.
After correction it is compiling without any error messages.

That’s what I did wrong.

Thanks again Maximilian.

This could only occur when you put the -I experession as the lib_deps value, which is wrong.