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

View File

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