I need to include a file into every .cpp
I have created as the first line in an Unreal Engine project... This cannot include it for EVERY cpp in the solution/project, just the ones I want it to.
That file is:
#include "./../../../Public/TemplatePlatformer.h"
Unreal Engine states that it has to be the first include. Is there a way of macroing this so that I just define it in one place and use the macro at the top of each cpp file...almost like an include txt file here so that the compiler thinks the header declaration is actually at the top?
this:
MyClass.cpp
#include "./../../../Public/TemplatePlatformer.h"
#include "MyClass.h"
...
MyClass2.cpp
#include "./../../../Public/TemplatePlatformer.h"
#include "MyClass2.h"
...
would become this:
MyClass.cpp
INCLUDE_CONFIG
#include "MyClass.h"
...
MyClass2.cpp
INCLUDE_CONFIG
#include "MyClass2.h"
...