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
conflicting_targets Make conflicting targets check less strict 2019-10-03 20:28:03 +02:00
duplicateLibraryEntries
export_across_file_boundaries
findDeps
findMocs
include_dir
include_dir_build
include_pwd
install_depends
one_space
pro_file_cache
project
prompt
quotedfilenames
rawString
resources CMake: Fix tst_qmake::resources() on Windows 2020-06-26 21:24:50 +02:00
shadow_files
shadow_files_build
simple_app tst_qmake: Add XFAILing test 2019-03-26 06:28:18 +00:00
simple_app_build
simple_dll
simple_lib
subdir_via_pro_file_extra_target
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