66 lines
2.0 KiB
CMake
66 lines
2.0 KiB
CMake
# Generated from styleimports.pro.
|
|
|
|
#####################################################################
|
|
## tst_styleimports Test:
|
|
#####################################################################
|
|
|
|
# Collect test data
|
|
file(GLOB_RECURSE test_data_glob
|
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
|
data/*)
|
|
list(APPEND test_data ${test_data_glob})
|
|
|
|
qt_internal_add_test(tst_styleimports
|
|
SOURCES
|
|
../shared/qtest_quickcontrols.h
|
|
../shared/util.cpp ../shared/util.h
|
|
../shared/visualtestutil.cpp ../shared/visualtestutil.h
|
|
tst_styleimports.cpp
|
|
DEFINES
|
|
QQC2_IMPORT_PATH=\\\"${CMAKE_CURRENT_SOURCE_DIR}/../../../src/imports\\\"
|
|
PUBLIC_LIBRARIES
|
|
Qt::CorePrivate
|
|
Qt::Gui
|
|
Qt::GuiPrivate
|
|
Qt::QmlPrivate
|
|
Qt::QuickControls2
|
|
Qt::QuickControls2ImplPrivate
|
|
Qt::QuickControls2Private
|
|
Qt::QuickPrivate
|
|
Qt::QuickTemplates2Private
|
|
Qt::TestPrivate
|
|
TESTDATA ${test_data}
|
|
)
|
|
|
|
# Resources:
|
|
set(qmake_resourcestyle_resource_files
|
|
"ResourceStyle/Button.qml" # special case: QTBUG-86726
|
|
"ResourceStyle/qmldir" # special case
|
|
)
|
|
|
|
qt_internal_add_resource(tst_styleimports "qmake_resourcestyle"
|
|
PREFIX
|
|
"/"
|
|
BASE
|
|
"resources"
|
|
FILES
|
|
${qmake_resourcestyle_resource_files}
|
|
)
|
|
|
|
|
|
#### Keys ignored in scope 1:.:.:styleimports.pro:<TRUE>:
|
|
# OTHER_FILES = "data/*.qml" "data/qmldir" "data/FileSystemStyle/*.qml" "data/FileSystemStyle/qmldir" "data/PlatformStyle/*.qml" "data/PlatformStyle/+linux/*.qml" "data/PlatformStyle/+macos/*.qml" "data/PlatformStyle/+windows/*.qml" "data/PlatformStyle/qmldir"
|
|
|
|
## Scopes:
|
|
#####################################################################
|
|
|
|
qt_internal_extend_target(tst_styleimports CONDITION ANDROID OR IOS
|
|
DEFINES
|
|
QT_QMLTEST_DATADIR=\\\":/data\\\"
|
|
)
|
|
|
|
qt_internal_extend_target(tst_styleimports CONDITION NOT ANDROID AND NOT IOS
|
|
DEFINES
|
|
QT_QMLTEST_DATADIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/data\\\"
|
|
)
|