How do you add dependencies to Source "engine" module

I can’t seem to add a new module I created to the runtime/engine module’s build.cs dependencies.
So to make sure I’m doing it properly, how do you add a new module to a source build, and how would you add that module as a dependency for the runtime/engine module?
Thanks

That’s what I figured. So I added my module to the runtime/engine build.cs private and public dependency ranges, even tried the pathinclude ranges then clean and rebuild after deleting the intermediate folders, but I would still get linker errors to my module classes

The exact same way, all modules work the same, projects and plugins are just different way of manage and distributing them. you my try to rebuild the enigne.

Once again tried adding the module. I added my module to the private and public include paths in engine.build.cs and it seems to recognize my classes in the includes.
Yet on compile it states “Unrecognized Type”, even though intellisense is acknowledging the class.

When you add a module to a regular project, you have to add it to the .uproject. Is there something similar for the source engine?
I went into my project’s properties, looked at the “Include Search Path” for “All Configurations”, and there my module is, exactly how every other module with generated files is.
So I have to be missing something on set up. I’ve looked around and found no info, so the only thing I’ve down is copied my runtime module into the runtime folder, and my editor module into the editor folder. Is there another step?

Have you fixed your problem or do you need more help?
If so, just clarifying, did you create/add your runtime module to the runtime directory in he engine?
Also, can you expand on, or show a screen shot of the Unrecognized Type error?
Thank you.

I never did manage to fix it, so I just migrated my files into existing engine modules. I did put runtime modules into the runtime directory and editor modules into the editor directory.
As for the rest, I don’t have access to my project and won’t for a month or so.
Once I do I’ll set up my project once more and share it if you like.
Thanks for helping

Hi@iSpam, could you find a way to fix this problem? I have been trying develop a console application which requires to use Engine classes. I could not compile it as I was getting the same kind of errors

I never did, but I also stopped trying. Eventually I just moved my classes out of my custom module and put them directly into relevant engine modules. I’m not sure what the problem was, but I assume I just simply wasn’t doing something correctly. Hope you can figure it out. If you do, please post back here for future searchers!