summaryrefslogtreecommitdiffstats
path: root/tests/manual/rhi/rhiwidgetproto/CMakeLists.txt
blob: 5b62ef557d9078f6cd6e98828b3921c75c7ddcba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

qt_internal_add_manual_test(rhiwidgetproto
    GUI
    SOURCES
        examplewidget.cpp examplewidget.h
        rhiwidget.cpp rhiwidget.h rhiwidget_p.h
        main.cpp
    LIBRARIES
        Qt::Gui
        Qt::GuiPrivate
        Qt::Widgets
        Qt::WidgetsPrivate
)

set_source_files_properties("../shared/texture.vert.qsb"
    PROPERTIES QT_RESOURCE_ALIAS "texture.vert.qsb"
)
set_source_files_properties("../shared/texture.frag.qsb"
    PROPERTIES QT_RESOURCE_ALIAS "texture.frag.qsb"
)
set(rhiwidgetproto_resource_files
    "../shared/texture.vert.qsb"
    "../shared/texture.frag.qsb"
)

qt_internal_add_resource(rhiwidgetproto "rhiwidgetproto"
    PREFIX
        "/"
    FILES
        ${rhiwidgetproto_resource_files}
)