qt5base-lts/tests/auto/widgets/kernel/qwidget/CMakeLists.txt
Alexey Edelev fdf5d11ff6 CMake: Add BUILTIN_TESTDATA option to qt_internal_add_test
Multiple tests use qt_internal_add_resource that copies the
functionality that is already implemented inside the
qt_internal_add_test function. Simplify these test by replacing
the qt_internal_add_resource call with the new BUILTIN_TESTDATA
option.

Change-Id: I18475b817d6f87264f0de53817d6c26c5ccab4e2
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2022-02-11 21:54:44 +01:00

53 lines
1.1 KiB
CMake

# Generated from qwidget.pro.
#####################################################################
## tst_qwidget Test:
#####################################################################
# Resources:
set(qwidget_resource_files
"geometry-fullscreen.dat"
"geometry-maximized.dat"
"geometry.dat"
"hellotr_la.qm"
)
qt_internal_add_test(tst_qwidget
SOURCES
tst_qwidget.cpp
PUBLIC_LIBRARIES
Qt::CorePrivate
Qt::Gui
Qt::GuiPrivate
Qt::TestPrivate
Qt::Widgets
Qt::WidgetsPrivate
TESTDATA ${qwidget_resource_files}
BUILTIN_TESTDATA
)
#### Keys ignored in scope 1:.:.:qwidget.pro:<TRUE>:
# testcase.timeout = "600"
## Scopes:
#####################################################################
qt_internal_extend_target(tst_qwidget CONDITION AIX
COMPILE_OPTIONS
-fpermissive
)
qt_internal_extend_target(tst_qwidget CONDITION APPLE
SOURCES
tst_qwidget_mac_helpers.mm
PUBLIC_LIBRARIES
${FWAppKit}
${FWSecurity}
)
qt_internal_extend_target(tst_qwidget CONDITION WIN32
PUBLIC_LIBRARIES
gdi32
user32
)