qt5base-lts/tests/auto/tools/qmake/testdata
Joerg Bornemann af61b5ca5c CMake: Fix tst_qmake::resources() on Windows
This test calls qmake on a project that generates a .qrc file. On
Windows, where debug_and_release is on by default, the generated qrc
file ends up in a "debug" or "release" subdirectory. On other
platforms the file is generated directly in the build dir.

To guess the right location, the preprocessor defines RELEASE_BUILD
and DEBUG_BUILD were passed to tst_qmake.cpp by the test's .pro file.
While the mapping from debug_and_release was fine for the .pro file,
it was commented out in the automatically converted CMakeLists.txt.

Instead of trying to fix the condition, we're going the easier route
that's used in all other .pro files of tst_qmake: make sure that
debug_and_release doesn't get in the way. In other tests this is done
by setting
    DESTDIR = ./
which doesn't work for the generated qrc file. That's why we simply do
    CONFIG -= debug_and_release
to make sure that everything is generated directly in the build dir.

Change-Id: I557ac4e21d7b385004d369fae8a3f727d76d4d88
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2020-06-26 21:24:50 +02:00
..
bundle-spaces remove nonsense DEFINES 2013-07-03 21:38:37 +02:00
conflicting_targets Make conflicting targets check less strict 2019-10-03 20:28:03 +02:00
duplicateLibraryEntries remove nonsense DEFINES 2013-07-03 21:38:37 +02:00
export_across_file_boundaries de-noise test 2015-02-04 16:33:51 +00:00
findDeps Updated license headers 2016-01-21 18:55:18 +00:00
findMocs Updated license headers 2016-01-21 18:55:18 +00:00
include_dir Updated license headers 2016-01-21 18:55:18 +00:00
include_dir_build Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
include_pwd Fix semantics of the src dir in the include search paths with MinGW 2012-09-10 14:09:45 +02:00
install_depends Updated license headers 2016-01-21 18:55:18 +00:00
one_space Updated license headers 2016-01-21 18:55:18 +00:00
pro_file_cache Fix qmake's pro file cache to interact correctly with write_file 2012-10-25 16:22:00 +02:00
project Updated license headers 2016-01-21 18:55:18 +00:00
prompt remove nonsense DEFINES 2013-07-03 21:38:37 +02:00
quotedfilenames make extra compiler targets depend on their respective compiler 2016-04-18 09:38:10 +00:00
rawString Fix license headers 2018-01-09 07:47:20 +00:00
resources CMake: Fix tst_qmake::resources() on Windows 2020-06-26 21:24:50 +02:00
shadow_files Updated license headers 2016-01-21 18:55:18 +00:00
shadow_files_build Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
simple_app tst_qmake: Add XFAILing test 2019-03-26 06:28:18 +00:00
simple_app_build Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
simple_dll Updated license headers 2016-01-21 18:55:18 +00:00
simple_lib Updated license headers 2016-01-21 18:55:18 +00:00
subdir_via_pro_file_extra_target Updated license headers 2016-01-21 18:55:18 +00:00
subdirs tst_qmake: Keep the source dir clean 2019-03-20 08:39:55 +00:00
substitutes remove nonsense DEFINES 2013-07-03 21:38:37 +02:00
substitutes_build Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
windows_resources Determine dependencies of Windows resource files 2019-08-13 09:38:46 +02:00
.gitignore Ignore stuff created during testing 2015-11-25 13:17:01 +00:00