When I try to add a folder in ThirdParty folder like this :
245415-245416-
--------------------------------------------MyTestThirdParty.build.cs-----------------------------------
using UnrealBuildTool;
using System.IO;
public class MyTestThirdParty : ModuleRules
{
public MyTestThirdParty(TargetInfo Target)
{
//表示第三方库
Type= ModuleType.External;
//第三方库新模块根目录目录路径你可以通过其他方式来获取路径比如get { return Path.GetFullPath(Path.Combine(ModuleDirectory,"../../ThirdParty/"));}
string MyPath= UEBuildConfiguration.UEThirdPartySourceDirectory +"MyTestThirdParty/";
//包含的头文件路径,因为编译的库里面都是链接过的编译单元,可以认为编译单元是不包含头文件的,所以在之后的使用时还需要获取到头文件的声明信息
PublicIncludePaths.Add(MyPath +"include/");
if(Target.Platform== UnrealTargetPlatform.Win64)
{
//第三方静态库的路径
PublicLibraryPaths.Add(MyPath+"lib/");
//第三方静态库的名称
PublicAdditionalLibraries.Add("libtest.lib");
}
}
}
and When I create a project with c++ , err:
what should i do to include a thirdparty correctly???
thank you all very much~~~