diff options
Diffstat (limited to 'tests/auto/widgets/kernel/qapplication/test/test.pro')
-rw-r--r-- | tests/auto/widgets/kernel/qapplication/test/test.pro | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/tests/auto/widgets/kernel/qapplication/test/test.pro b/tests/auto/widgets/kernel/qapplication/test/test.pro index 832cfe7ebf..93e80dd123 100644 --- a/tests/auto/widgets/kernel/qapplication/test/test.pro +++ b/tests/auto/widgets/kernel/qapplication/test/test.pro @@ -1,11 +1,9 @@ CONFIG += testcase -CONFIG -= debug_and_release_target QT += widgets widgets-private testlib QT += core-private gui-private SOURCES += ../tst_qapplication.cpp -TARGET = ../tst_qapplication builtin_testdata: DEFINES += BUILTIN_TESTDATA @@ -14,7 +12,20 @@ TESTDATA = ../test/test.pro ../tmp/README ../modal !winrt { SUBPROGRAMS = desktopsettingsaware modal win32:SUBPROGRAMS += wincmdline - - for(file, SUBPROGRAMS): TEST_HELPER_INSTALLS += "../$${file}/$${file}" } +debug_and_release { + CONFIG(debug, debug|release) { + TARGET = ../../debug/tst_qapplication + !winrt: TEST_HELPER_INSTALLS = ../debug/helper + for(file, SUBPROGRAMS): TEST_HELPER_INSTALLS += "../debug/$${file}" + } else { + TARGET = ../../release/tst_qapplication + !winrt: TEST_HELPER_INSTALLS = ../release/helper + for(file, SUBPROGRAMS): TEST_HELPER_INSTALLS += "../release/$${file}" + } +} else { + TARGET = ../tst_qapplication + !winrt: TEST_HELPER_INSTALLS = ../helper + for(file, SUBPROGRAMS): TEST_HELPER_INSTALLS += "../$${file}" +} |