qt6-bb10/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
conflicting_targets Make conflicting targets check less strict 2019-10-03 20:28:03 +02:00
duplicateLibraryEntries
export_across_file_boundaries
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
include_pwd
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
project Updated license headers 2016-01-21 18:55:18 +00:00
prompt
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
simple_app tst_qmake: Add XFAILing test 2019-03-26 06:28:18 +00:00
simple_app_build
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
substitutes_build
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