How to integrate third-party libraries into UE4
Note: How to use CMake to analyze Alibaba Cloud's OSS plug-in will not be described here. By default, everyone has already parsed the Alibaba Cloud plug-in.
How to modify the plug-in file that has been made by CMake
1: Create a blank plug-in (SimpleOSS) in UE4 and create a new folder OssTest
2: First open the Third_Party file in the third-party library file
The lib and include inside are the third-party libraries (dependencies) of the third-party library, directly dragged into OssTest
3: Open the third-party library file Sdk, and drag the include file into OssTest
4: Open the third-party library compiled with CMake before, (Build) file (the specific method is very simple, Baidu will not repeat it)
Open lib->Release->alibabacloud-oss-cpp-sdk.lib (or other names)
Drag this into the lib of OssTest and recompile it.
5: Add a private function that returns the address of the third-party library in the plugin.Build.cs
private string OSSThirdPartyPath
{
get
{
return Path.GetFullPath(Path.Combine(ModuleDirectory, "../OSSThirdParty/"));
}
}
And add the project path file in .Build.cs. As follows
string OssincludePath = Path.Combine(OSSThirdPartyPath, "include");
PublicIncl