Add additional dependencies

I need to add a .lib file as an additional dependencies, but the project does not have any linker settings so I am unable to specify the lib file there. This is what I expected:http://puu.sh/feflJ/62dbc5a8cf.png

However, there is no such place to specify the name. How is it done in UE4 c++?

Hi,

You can specify your libraries in ModuleRules.

PublicAdditionalLibraries.Add("filename.lib");

I recommended to you look at Engine/Source/ThirdParty/Fbx/FBX.Build.cs.

Hope it helps!

Where should I add this?

I am unable to find a project path that has “Engine/Source/ThirdParty/Fbx/” in it.

I have read this and I fear that I have to make a completely new module. Should I just make a new folder “MyExternalModule” and put the header files and the libraries in there?

Edit:
I now tried making my own module, but now it is complaining about one of my files not including any headers.
“cpp is not including any headers. We expect all modules to include a header file for precompiled header generation. Please add an #include statement.”

This in spite of my cpp file having this at its top.

It will be called YourProjectName.Build.cs. Just add the line PublicAdditionalLibraries.Add(“filename.lib”); after PublicDependencyModuleNames.AddRange