Tests: Fix linking without lib tooling

Change-Id: I51110089b1bed337de54dfa7167b2a5aff761837
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Christian Stenger
2018-10-24 15:15:51 +02:00
parent 2bfe4bbf06
commit 1b231d1dc6
2 changed files with 10 additions and 10 deletions

View File

@@ -3,8 +3,7 @@ INCLUDEPATH += $$PWD
SOURCES += \
$$PWD/pchmanagerserver.cpp \
$$PWD/projectparts.cpp \
$$PWD/projectpartqueue.cpp \
$$PWD/usedmacrosandsourcescollector.cpp
$$PWD/projectpartqueue.cpp
HEADERS += \
$$PWD/pchmanagerserver.h \
@@ -23,15 +22,12 @@ HEADERS += \
$$PWD/taskschedulerinterface.h \
$$PWD/precompiledheaderstorage.h \
$$PWD/precompiledheaderstorageinterface.h \
$$PWD/collectusedmacroactionfactory.h \
$$PWD/collectusedmacrosaction.h \
$$PWD/collectusedmacrosandsourcespreprocessorcallbacks.h \
$$PWD/usedmacrosandsourcescollector.h \
$$PWD/usedmacroandsourcestorageinterface.h \
$$PWD/usedmacroandsourcestorage.h
!isEmpty(LIBTOOLING_LIBS) {
SOURCES += \
$$PWD/usedmacrosandsourcescollector.cpp \
$$PWD/includecollector.cpp \
$$PWD/pchcreator.cpp
@@ -40,6 +36,10 @@ HEADERS += \
$$PWD/collectincludestoolaction.h \
$$PWD/collectincludesaction.h \
$$PWD/collectincludespreprocessorcallbacks.h \
$$PWD/collectusedmacroactionfactory.h \
$$PWD/collectusedmacrosaction.h \
$$PWD/collectusedmacrosandsourcespreprocessorcallbacks.h \
$$PWD/pchcreator.h \
$$PWD/processormanager.h
$$PWD/processormanager.h \
$$PWD/usedmacrosandsourcescollector.h
}

View File

@@ -102,8 +102,7 @@ SOURCES += \
projectpartqueue-test.cpp \
processormanager-test.cpp \
taskscheduler-test.cpp \
compileroptionsbuilder-test.cpp \
usedmacrocollector-test.cpp
compileroptionsbuilder-test.cpp
!isEmpty(LIBCLANG_LIBS) {
SOURCES += \
@@ -180,7 +179,8 @@ SOURCES += \
symbolindexing-test.cpp \
symbolscollector-test.cpp \
symbolfinder-test.cpp \
testclangtool.cpp
testclangtool.cpp \
usedmacrocollector-test.cpp
}
exists($$GOOGLEBENCHMARK_DIR) {