Qt Creator, MSVC compiler and INCLUDEPATH [fixed]
-
I have a very simple project in which I try to use Google Test from within Qt Creator using the MSVC compiler.
The project file looks like this
@
QT += core
QT -= guiTARGET = CoreLibTests
CONFIG += console
CONFIG -= app_bundleTEMPLATE = app
debug {
win32:LIBS += $$PWD/../gtest-1.7.0/msvc/x64/Debug/gtestd.lib
}DEFINES += "_VARIADIC_MAX=10"
INCLUDEPATH += $$PWD/../gtest-1.7.0/includeSOURCES += main.cpp
@When building via command line via
@
qmake CONFIG+="debug" CoreLibTestsPro.pro
nmake
@It builds as expected. But from within Qt Creator it complains "Cannot open include file: 'gtest/gtest.h'".
I tried leaving out the "$$PWD" reference but that didn't help.Does anyone have a tip, how to set up INCLUDEPATH or configure Qt Creator?