Unit test: Support qbs build with googletest submodule

This is necessary to be able to build on Windows.
Also add an include to fix building with clang 12.

Change-Id: I9278a2c942a5e50c89c3aac19492f3a1ef3177b1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2020-09-17 11:54:19 +02:00
parent 8427c283cb
commit c229c667cf
3 changed files with 850 additions and 801 deletions

View File

@@ -1,5 +1,6 @@
Project {
name: "C++ unit tests"
condition: project.withAutotests
references: [
"echoserver/echoserver.qbs",
"unittest/unittest.qbs",

View File

@@ -27,6 +27,7 @@
#include "gtest-std-printing.h"
#ifdef CLANG_UNIT_TESTS
#include <clang/Basic/FileManager.h>
#include <clang/Basic/SourceLocation.h>
#include <clang/Basic/SourceManager.h>

File diff suppressed because it is too large Load Diff