forked from qt-creator/qt-creator
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:
@@ -1,5 +1,6 @@
|
|||||||
Project {
|
Project {
|
||||||
name: "C++ unit tests"
|
name: "C++ unit tests"
|
||||||
|
condition: project.withAutotests
|
||||||
references: [
|
references: [
|
||||||
"echoserver/echoserver.qbs",
|
"echoserver/echoserver.qbs",
|
||||||
"unittest/unittest.qbs",
|
"unittest/unittest.qbs",
|
||||||
|
@@ -27,6 +27,7 @@
|
|||||||
#include "gtest-std-printing.h"
|
#include "gtest-std-printing.h"
|
||||||
|
|
||||||
#ifdef CLANG_UNIT_TESTS
|
#ifdef CLANG_UNIT_TESTS
|
||||||
|
#include <clang/Basic/FileManager.h>
|
||||||
#include <clang/Basic/SourceLocation.h>
|
#include <clang/Basic/SourceLocation.h>
|
||||||
#include <clang/Basic/SourceManager.h>
|
#include <clang/Basic/SourceManager.h>
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user