From 4efeba85e8c0a3e3fde1523003e725684d6dcb15 Mon Sep 17 00:00:00 2001 From: codereader Date: Sat, 27 Jan 2024 07:05:40 +0100 Subject: [PATCH] Configure precompiled headers when compiling the test projects. It's grown large enough to save a couple of minutes. --- test/precompiled.cpp | 1 + test/precompiled.h | 13 +++++++++++++ tools/msvc/Tests/Tests.vcxproj | 27 ++++++++++++++------------ tools/msvc/Tests/Tests.vcxproj.filters | 2 ++ tools/msvc/properties/Tests.props | 1 + 5 files changed, 32 insertions(+), 12 deletions(-) create mode 100644 test/precompiled.cpp create mode 100644 test/precompiled.h diff --git a/test/precompiled.cpp b/test/precompiled.cpp new file mode 100644 index 0000000000..5f656a45da --- /dev/null +++ b/test/precompiled.cpp @@ -0,0 +1 @@ +#include "precompiled.h" diff --git a/test/precompiled.h b/test/precompiled.h new file mode 100644 index 0000000000..8a998ed72c --- /dev/null +++ b/test/precompiled.h @@ -0,0 +1,13 @@ +/** + * greebo: Precompiled header file used by the unit test project + */ +#pragma once + +#include "RadiantTest.h" + +#include "algorithm/Entity.h" +#include "algorithm/FileUtils.h" +#include "algorithm/Scene.h" +#include "algorithm/Primitives.h" +#include "algorithm/View.h" +#include "algorithm/XmlUtils.h" diff --git a/tools/msvc/Tests/Tests.vcxproj b/tools/msvc/Tests/Tests.vcxproj index 9382f62b7c..85ea52e1b4 100644 --- a/tools/msvc/Tests/Tests.vcxproj +++ b/tools/msvc/Tests/Tests.vcxproj @@ -70,6 +70,7 @@ + @@ -132,6 +133,12 @@ + + Create + Create + Create + Create + @@ -162,14 +169,13 @@ - NotUsing - - + precompiled.h Disabled WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL Level3 + %(PrecompiledHeaderFile) true @@ -178,14 +184,13 @@ - NotUsing - - + precompiled.h Disabled X64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebugDLL Level3 + %(PrecompiledHeaderFile) true @@ -194,13 +199,12 @@ - NotUsing - - + precompiled.h WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) MultiThreadedDLL Level3 ProgramDatabase + %(PrecompiledHeaderFile) true @@ -211,13 +215,12 @@ - NotUsing - - + precompiled.h X64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) MultiThreadedDLL Level3 ProgramDatabase + %(PrecompiledHeaderFile) true diff --git a/tools/msvc/Tests/Tests.vcxproj.filters b/tools/msvc/Tests/Tests.vcxproj.filters index e48a587f7d..472dc0c9be 100644 --- a/tools/msvc/Tests/Tests.vcxproj.filters +++ b/tools/msvc/Tests/Tests.vcxproj.filters @@ -75,6 +75,7 @@ + @@ -138,6 +139,7 @@ algorithm + diff --git a/tools/msvc/properties/Tests.props b/tools/msvc/properties/Tests.props index 1b38046770..e642b28f5f 100644 --- a/tools/msvc/properties/Tests.props +++ b/tools/msvc/properties/Tests.props @@ -11,6 +11,7 @@ %(PreprocessorDefinitions) + Use