summaryrefslogtreecommitdiffstats
path: root/tests/manual/widgets/touchbrowser/CMakeLists.txt
blob: de60ad2b4964aaa6bc48a2c0ff29d1cac64aa28a (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
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
    cmake_minimum_required(VERSION 3.19)
    project(touchbrowser LANGUAGES CXX)
    find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
endif()

set(CMAKE_AUTORCC ON)
set(TOUCHMOCKING_DIR "../../touchmocking")

include_directories(${TOUCHMOCKING_DIR})
add_definitions(-DWIDGET_TOUCHBROWSER)

qt_internal_add_manual_test(touchbrowser-widget
    GUI
    SOURCES
        main.cpp
        resources.qrc
        ${TOUCHMOCKING_DIR}/touchmockingapplication.cpp
        ${TOUCHMOCKING_DIR}/touchmockingapplication.h
        ${TOUCHMOCKING_DIR}/utils.h
    LIBRARIES
        Qt::Core
        Qt::Gui
        Qt::WebEngineWidgets
    ENABLE_AUTOGEN_TOOLS
        moc
)