Unable to install custom libraries to global storage

I have a few custom libraries which I would like to use for several projects instead of installing them separately for each project. I have tried looking for a way to install these to global storage but had no luck.
Please help!

So you put them in the global lib dir in the expected folder structure?

I haven’t put it in any folder yet.

So, just put them in C:\Users\<user>\.platformio\lib\<new folder>\<your .cpp/.h files here>. Or put them in some other folder and refer to it using lib_extra_dirs.

This seems to work. All the help is really appreciated!