I’m not seeing any way to add additional source files to the build using ModuleRules, is there a way? I want to generate some c++ at build configuration time but I’m not sure how I’d include those. Also, I have a 3rd party library that has a bunch of cpp files that are #included into 1 cpp file, so I don’t want the build to double include those.
I ended up figuring out a way to do what I needed with help from this post: How to include sources without PCH include - #5 by anonymous_user_d868c905
I have a file in my Source/MyPlugin/Private
directory that I generate in MyPlugin.Build.cs
, this adds #include "Foo.cpp"
for the additional cpp files I need to include in the build. I also add the path to Foo.cpp
etc into the PrivateIncludePaths
in my Build.cs