43 lines
1.0 KiB
C#
43 lines
1.0 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using System.IO;
|
|
using EpicGames.Core;
|
|
|
|
namespace UnrealBuildTool.Rules
|
|
{
|
|
public class DNACalibLibTest : ModuleRules
|
|
{
|
|
public DNACalibLibTest(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
bUseUnity = false; // A windows include is preprocessing some method names causing compile failures.
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
{
|
|
PublicDefinitions.Add("GTEST_OS_WINDOWS=1");
|
|
}
|
|
|
|
string DNACalibLibPath = Path.GetFullPath(Path.Combine(ModuleDirectory, "../DNACalibLib"));
|
|
|
|
if (Target.LinkType == TargetLinkType.Monolithic)
|
|
{
|
|
PublicDependencyModuleNames.Add("DNACalibLib");
|
|
PrivateIncludePaths.Add(Path.Combine(DNACalibLibPath, "Private"));
|
|
}
|
|
else
|
|
{
|
|
PrivateDefinitions.Add("DNACALIB_MODULE_DISCARD");
|
|
ConditionalAddModuleDirectory(new DirectoryReference(DNACalibLibPath));
|
|
}
|
|
|
|
PublicDependencyModuleNames.AddRange(
|
|
new string[]
|
|
{
|
|
"Core",
|
|
"GoogleTest",
|
|
"RigLogicLib"
|
|
}
|
|
);
|
|
}
|
|
}
|
|
}
|