diff options
Diffstat (limited to 'tests/auto/corelib/io/qfileselector/CMakeLists.txt')
-rw-r--r-- | tests/auto/corelib/io/qfileselector/CMakeLists.txt | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/tests/auto/corelib/io/qfileselector/CMakeLists.txt b/tests/auto/corelib/io/qfileselector/CMakeLists.txt index 5f254044df..0fdff55cd5 100644 --- a/tests/auto/corelib/io/qfileselector/CMakeLists.txt +++ b/tests/auto/corelib/io/qfileselector/CMakeLists.txt @@ -1,15 +1,15 @@ -# Generated from qfileselector.pro. +# Copyright (C) 2022 The Qt Company Ltd. +# SPDX-License-Identifier: BSD-3-Clause ##################################################################### ## tst_qfileselectors Test: ##################################################################### -qt_internal_add_test(tst_qfileselectors - SOURCES - tst_qfileselector.cpp - PUBLIC_LIBRARIES - Qt::CorePrivate -) +if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + cmake_minimum_required(VERSION 3.16) + project(tst_qfileselectors LANGUAGES CXX) + find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST) +endif() # Resources: set(qfileselector_resource_files @@ -62,10 +62,12 @@ set(qfileselector_resource_files "platforms/test5" ) -qt_internal_add_resource(tst_qfileselectors "qfileselector" - PREFIX - "/" - FILES - ${qfileselector_resource_files} +qt_internal_add_test(tst_qfileselectors + SOURCES + tst_qfileselector.cpp + LIBRARIES + Qt::CorePrivate + TESTDATA ${qfileselector_resource_files} + BUILTIN_TESTDATA ) |