mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 03:02:24 +01:00
provide a VS2012 project and fix 2 compilation issues for VS2012
This commit is contained in:
parent
0dc49d1b57
commit
508dfe0886
2
.gitignore
vendored
2
.gitignore
vendored
@ -22,3 +22,5 @@ projects/XCode4/CatchSelfTest/DerivedData
|
||||
projects/XCode4/OCTest/DerivedData
|
||||
*.pyc
|
||||
projects/XCode4/iOSTest/DerivedData
|
||||
*.opensdf
|
||||
projects/VS2012/TestCatch/TestCatch.sdf
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include "tbc_text_format.h"
|
||||
#undef CLICHE_TBC_TEXT_FORMAT_OUTER_NAMESPACE
|
||||
|
||||
#include <algorithm>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
@ -99,6 +99,7 @@ namespace Catch {
|
||||
return node->stats.sectionInfo.lineInfo == m_other.lineInfo;
|
||||
}
|
||||
private:
|
||||
BySectionInfo& operator=( BySectionInfo const& other ); // = delete;
|
||||
SectionInfo const& m_other;
|
||||
};
|
||||
|
||||
|
20
projects/VS2012/TestCatch/TestCatch.sln
Normal file
20
projects/VS2012/TestCatch/TestCatch.sln
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual Studio 2010
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestCatch", "TestCatch\TestCatch.vcxproj", "{A2F23B19-9CF7-4246-AE58-BC65E39C6F7E}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{A2F23B19-9CF7-4246-AE58-BC65E39C6F7E}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{A2F23B19-9CF7-4246-AE58-BC65E39C6F7E}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{A2F23B19-9CF7-4246-AE58-BC65E39C6F7E}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{A2F23B19-9CF7-4246-AE58-BC65E39C6F7E}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
154
projects/VS2012/TestCatch/TestCatch/TestCatch.vcxproj
Normal file
154
projects/VS2012/TestCatch/TestCatch/TestCatch.vcxproj
Normal file
@ -0,0 +1,154 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{A2F23B19-9CF7-4246-AE58-BC65E39C6F7E}</ProjectGuid>
|
||||
<RootNamespace>TestCatch</RootNamespace>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<PlatformToolset>v110</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v110</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<TreatWarningAsError>true</TreatWarningAsError>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<AdditionalIncludeDirectories>..\..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<TreatWarningAsError>true</TreatWarningAsError>
|
||||
<DisableSpecificWarnings>4702</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\SelfTest\ApproxTests.cpp" />
|
||||
<ClCompile Include="..\..\..\SelfTest\BDDTests.cpp" />
|
||||
<ClCompile Include="..\..\..\SelfTest\CmdLineTests.cpp" />
|
||||
<ClCompile Include="..\..\..\SelfTest\SectionTrackerTests.cpp" />
|
||||
<ClCompile Include="..\..\..\SelfTest\TestMain.cpp" />
|
||||
<ClCompile Include="..\..\..\SelfTest\ClassTests.cpp" />
|
||||
<ClCompile Include="..\..\..\SelfTest\ConditionTests.cpp" />
|
||||
<ClCompile Include="..\..\..\SelfTest\ExceptionTests.cpp" />
|
||||
<ClCompile Include="..\..\..\SelfTest\GeneratorTests.cpp" />
|
||||
<ClCompile Include="..\..\..\SelfTest\MessageTests.cpp" />
|
||||
<ClCompile Include="..\..\..\SelfTest\MiscTests.cpp" />
|
||||
<ClCompile Include="..\..\..\SelfTest\TrickyTests.cpp" />
|
||||
<ClCompile Include="..\..\..\SelfTest\VariadicMacrosTests.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\..\include\catch.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\catch_objc.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\catch_objc_main.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\catch_runner.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\catch_with_main.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_capture.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_commandline.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_common.h" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_config.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_debugger.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_evaluate.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_exception_translator_registry.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_generators.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_generators_impl.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_hub.h" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_hub_impl.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_interfaces_capture.h" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_interfaces_exception.h" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_interfaces_reporter.h" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_interfaces_runner.h" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_interfaces_testcase.h" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_list.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_reporter_registrars.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_reporter_registry.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_result_type.h" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_resultinfo.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_runner_impl.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_section.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_stream.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_test_case_info.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_test_case_registry_impl.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_test_registry.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\internal\catch_xmlwriter.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\reporters\catch_reporter_basic.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\reporters\catch_reporter_junit.hpp" />
|
||||
<ClInclude Include="..\..\..\..\include\reporters\catch_reporter_xml.hpp" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user