<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
  <PropertyGroup>
    <TargetFrameworks>net8.0;net472</TargetFrameworks>
    <OutputType>Exe</OutputType>
    <TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>
    <Platforms>x86;x64;arm64;AnyCPU</Platforms>
    <Configurations>DebugQ8;DebugQ16;DebugQ16-HDRI;TestQ8;TestQ16;TestQ16-HDRI;TestQ8-OpenMP;TestQ16-OpenMP;TestQ16-HDRI-OpenMP</Configurations>
  </PropertyGroup>

  <PropertyGroup Condition="$(Configuration.EndsWith('Q8'))">
    <DefineConstants>Q8</DefineConstants>
    <QuantumType>Q8</QuantumType>
  </PropertyGroup>

  <PropertyGroup Condition="$(Configuration.EndsWith('Q8-OpenMP'))">
    <DefineConstants>Q8;OPENMP</DefineConstants>
    <QuantumType>Q8</QuantumType>
  </PropertyGroup>

  <PropertyGroup Condition="$(Configuration.EndsWith('Q16'))">
    <DefineConstants>Q16</DefineConstants>
    <QuantumType>Q16</QuantumType>
  </PropertyGroup>

  <PropertyGroup Condition="$(Configuration.EndsWith('Q16-OpenMP'))">
    <DefineConstants>Q16;OPENMP</DefineConstants>
    <QuantumType>Q16</QuantumType>
  </PropertyGroup>

  <PropertyGroup Condition="$(Configuration.EndsWith('Q16-HDRI'))">
    <DefineConstants>Q16HDRI</DefineConstants>
    <QuantumType>Q16-HDRI</QuantumType>
  </PropertyGroup>

  <PropertyGroup Condition="$(Configuration.EndsWith('Q16-HDRI-OpenMP'))">
    <DefineConstants>Q16HDRI;OPENMP</DefineConstants>
    <QuantumType>Q16-HDRI</QuantumType>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.NET.Test.Sdk" />
    <PackageReference Include="StyleCop.Analyzers">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>
    <PackageReference Include="xunit.v3" />
    <PackageReference Include="xunit.runner.visualstudio">
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
      <PrivateAssets>all</PrivateAssets>
    </PackageReference>
  </ItemGroup>

  <ItemGroup>
    <Compile Include="../Shared/ColorAssert.cs" Link="Asserts/ColorAssert.cs" />
    <Compile Include="../Shared/Files.cs" Link="TestHelpers/Files.cs" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="../../src/Magick.NET/Magick.NET.csproj" />
    <ProjectReference Include="../../src/Magick.NET.SystemDrawing/Magick.NET.SystemDrawing.csproj" />
  </ItemGroup>

  <Import Project="../Magick.props" />
</Project>
