Added Catch2 library for native unit tests.
This commit is contained in:
31
Source/ThirdParty/catch2/catch2.Build.cs
vendored
Normal file
31
Source/ThirdParty/catch2/catch2.Build.cs
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using Flax.Build;
|
||||
|
||||
/// <summary>
|
||||
/// https://github.com/catchorg/Catch2
|
||||
/// </summary>
|
||||
public class catch2 : HeaderOnlyModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void Init()
|
||||
{
|
||||
base.Init();
|
||||
|
||||
LicenseType = LicenseTypes.BoostSoftwareLicense;
|
||||
LicenseFilePath = "LICENSE.txt";
|
||||
|
||||
// Merge into test binary
|
||||
BinaryModuleName = "Engine.Tests";
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void GetFilesToDeploy(List<string> files)
|
||||
{
|
||||
base.GetFilesToDeploy(files);
|
||||
|
||||
files.AddRange(Directory.GetFiles(FolderPath, "*.hpp", SearchOption.AllDirectories));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user