Skip to content

Commit

Permalink
Removing compile_tests from pch
Browse files Browse the repository at this point in the history
  • Loading branch information
attcs committed Jun 16, 2024
1 parent c5f6266 commit fedf84f
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 13 deletions.
17 changes: 17 additions & 0 deletions unittests/compile.tests.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// pch.cpp: source file corresponding to the pre-compiled header

#include "pch.h"
#include "compile_test.h"

// When you are using pre-compiled headers, this source file is necessary for compilation to succeed.

namespace CompileTest
{
TEST_CLASS(CompileTest)
{
TEST_METHOD(AllFunc)
{
testCompileBoxBatchSplitStrategy();
}
};
}
12 changes: 0 additions & 12 deletions unittests/general.tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3224,15 +3224,3 @@ namespace LongIntAdaptor

};
}

namespace CompileTest
{
TEST_CLASS(CompileTest)
{
TEST_METHOD(AllFunc)
{
testCompileBoxBatchSplitStrategy();
}

};
}
2 changes: 1 addition & 1 deletion unittests/pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// add headers that you want to pre-compile here

#include "../octree.h"
#include "compile_test.h"


#include "CppUnitTest.h"

Expand Down
1 change: 1 addition & 0 deletions unittests/unittests.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="bitset.arithmetic.tests.cpp" />
<ClCompile Include="compile.tests.cpp" />
<ClCompile Include="example.tests.cpp" />
<ClCompile Include="pch.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
Expand Down
3 changes: 3 additions & 0 deletions unittests/unittests.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
<ClCompile Include="random.tests.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="compile.tests.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="pch.h">
Expand Down

0 comments on commit fedf84f

Please sign in to comment.