看了好的大神的方法,只有这个编译成功了
// Copyright Epic Games, Inc. All Rights Reserved.
//build.cs
using System;
using System.IO;
using UnrealBuildTool;
public class MyProjectThird01 : ModuleRules
{
//private string ThirdPartyPath
//{
// get { return Path.GetFullPath(Path.Combine(ModuleDirectory, "../../ThirdParty/")); }
//}
public MyProjectThird01(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore"});
PrivateDependencyModuleNames.AddRange(new string[] { });
var basepath0 = Path.GetFullPath(Path.Combine(ModuleDirectory));
basepath0 += "//lib";
var basepath1 = Path.GetFullPath(Path.Combine(ModuleDirectory));
basepath1 += "//include";
//宏报错
bEnableUndefinedIdentifierWarnings = false;
//PublicIncludePaths.Add(Path.Combine(ModuleDirectory, "Include"));
//PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "lib", "sqlite3.lib"));
}
}