How to include sources without PCH include
All source files in module "XXX" must include the same precompiled header first.
What is the best way to include the sources of an external library without going through all files and add the PCH include? I don't want to modify my libs just for the Unreal build system.
asked May 03 '16 at 09:08 AM in C++ Programming
So I looked again at the example Adynathos gave. (thanks) And it turned out, the best way is to link a static library to my plugin and build the library outside of the UBS. For reference: Put the following block into your public MyPlugin(TargetInfo Target) section.
The PublicAdditionalLibraries is not included in the plugin templates, I recommend to add it - Unreal can you hear me? Thanks everybody for helping me.
If you want to include an external library without building it with the UE build system, put it in
For this example, we assume the headers are in
You can see an example of including the OpenCV library in a plugin I am developing.
answered May 03 '16 at 01:50 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here