summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/CMakeLists.txt
blob: 2fa1f915a6f357ba20296ab6bdb56061274e1c0e (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

cmake_minimum_required(VERSION 3.16)
project(qtwebengine_cmake_tests)

enable_testing()

find_package(Qt6Core REQUIRED)

include("${_Qt6CTestMacros}")

set(module_includes "")
if(TARGET Qt6::WebEngineCore)
    list(APPEND module_includes
        WebEngineCore QWebEnginePage
    )
endif()
if(TARGET Qt6::WebEngineWidgets)
    list(APPEND module_includes
        WebEngineWidgets QWebEngineView
    )
endif()
if(TARGET Qt6::Pdf)
    list(APPEND module_includes
        Pdf QPdfDocument
    )
endif()

_qt_internal_test_module_includes(${module_includes})