mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-08 02:17:43 +08:00
qt 6.5.1 original
This commit is contained in:
52
tests/auto/corelib/io/qfileinfo/CMakeLists.txt
Normal file
52
tests/auto/corelib/io/qfileinfo/CMakeLists.txt
Normal file
@ -0,0 +1,52 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
#####################################################################
|
||||
## tst_qfileinfo Test:
|
||||
#####################################################################
|
||||
|
||||
qt_internal_add_test(tst_qfileinfo
|
||||
SOURCES
|
||||
tst_qfileinfo.cpp
|
||||
LIBRARIES
|
||||
Qt::CorePrivate
|
||||
)
|
||||
|
||||
# Resources:
|
||||
set(qfileinfo_resource_files
|
||||
"resources/"
|
||||
)
|
||||
|
||||
qt_internal_add_resource(tst_qfileinfo "qfileinfo"
|
||||
PREFIX
|
||||
"/tst_qfileinfo/"
|
||||
FILES
|
||||
${qfileinfo_resource_files}
|
||||
)
|
||||
set(testdata_resource_files
|
||||
"resources/file1"
|
||||
"resources/file1.ext1"
|
||||
"resources/file1.ext1.ext2"
|
||||
"tst_qfileinfo.cpp"
|
||||
)
|
||||
|
||||
qt_internal_add_resource(tst_qfileinfo "testdata"
|
||||
PREFIX
|
||||
"/testdata"
|
||||
FILES
|
||||
${testdata_resource_files}
|
||||
)
|
||||
|
||||
|
||||
## Scopes:
|
||||
#####################################################################
|
||||
|
||||
qt_internal_extend_target(tst_qfileinfo CONDITION WIN32
|
||||
LIBRARIES
|
||||
advapi32
|
||||
netapi32
|
||||
)
|
||||
|
||||
if (APPLE)
|
||||
set_source_files_properties(tst_qfileinfo.cpp PROPERTIES LANGUAGE OBJCXX)
|
||||
endif()
|
0
tests/auto/corelib/io/qfileinfo/resources/file1
Normal file
0
tests/auto/corelib/io/qfileinfo/resources/file1
Normal file
2395
tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp
Normal file
2395
tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user