Link Custom Modules from outside Unreals Folder Structure

I was wondering is there anyway to have the custom module we created outside unreal’s folder structure ?.

For example I write a code module that I link to two other unreal game projects without copying to the source folders of the Engine or the game projects.

I looked through the UBT files and found that it searches the Engine/Source for engine modules and the game_name/source for plugin or gameplay modules and couldn’t find anything suggesting they can be outside those. If anyone finds a way please let me know,

It would be convenient to mention source directories to check for modules in the build.cs or target.cs files, similar to how we add public or private include paths or libraries.

Interested in this as well. As we have modules that should reside in a single folder but needs access from multiple projects, without having copy/paste of the modules.