From 76590ce2208e754f87e5b75c0c1de425c34e0b1a Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Tue, 12 Nov 2019 11:53:30 +0100 Subject: Regenerate tests/auto/corelib/io Change-Id: Ic1d1b5c0deb90800c7219fb8cce4e77e0db145b8 Reviewed-by: Leander Beernaert Reviewed-by: Simon Hausmann Reviewed-by: Qt CMake Build Bot --- .../auto/corelib/io/qtemporaryfile/CMakeLists.txt | 26 ++++++++++++++-------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'tests/auto/corelib/io/qtemporaryfile/CMakeLists.txt') diff --git a/tests/auto/corelib/io/qtemporaryfile/CMakeLists.txt b/tests/auto/corelib/io/qtemporaryfile/CMakeLists.txt index b1c324ca17..693e2c674c 100644 --- a/tests/auto/corelib/io/qtemporaryfile/CMakeLists.txt +++ b/tests/auto/corelib/io/qtemporaryfile/CMakeLists.txt @@ -8,7 +8,6 @@ list(APPEND test_data "tst_qtemporaryfile.cpp") add_qt_test(tst_qtemporaryfile - GUI SOURCES tst_qtemporaryfile.cpp LIBRARIES @@ -17,23 +16,32 @@ add_qt_test(tst_qtemporaryfile ) # Resources: +set(qtemporaryfile_resource_files + "resources/test.txt" +) + add_qt_resource(tst_qtemporaryfile "qtemporaryfile" PREFIX "/" FILES - "resources/test.txt" + ${qtemporaryfile_resource_files} ) ## Scopes: ##################################################################### -# Resources: -add_qt_resource(tst_qtemporaryfile "android_testdata" - PREFIX - "/android_testdata" - FILES +if(ANDROID AND NOT ANDROID_EMBEDDED) + # Resources: + set(android_testdata_resource_files "resources/test.txt" "tst_qtemporaryfile.cpp" -) - + ) + + add_qt_resource(tst_qtemporaryfile "android_testdata" + PREFIX + "/android_testdata" + FILES + ${android_testdata_resource_files} + ) +endif() -- cgit v1.2.3