I have some code I reuse across multiple projects. It’s code I use for a flag system, event system, etc. It’s a good number of classes and it’s growing slowly.
When I edit or update the code in one project it needs to be migrated to all others using the code. This means the code has to update the MYPROJECT_API tags and MyProject.h headers all over. Changing these and copying the code back and forth is very messy.
Is it possible to put all these classes into a separate Project and include it in all the solutions that are using it? So it can be easily reference it in via #include. Similar to a namespaced public project in C#.
I’ve heard about editing the build.cs etc. but how exactly would I do this? Does anyone have any experience on this?
For Example: I would like to use the public classes in Wingless (A UE4 Project) in the current solution for MerForge (Also UE4 Project).
I would like to use the class/folder structure, since the code isn’t actually a plugin. Do you have any advice or examples on how to link it in the build.cs. I’m having trouble finding a clear example.