summaryrefslogtreecommitdiffstats
path: root/src/render/configure.cmake
blob: a7932f758fac7005052116c556cccd44cb4d618e (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
34
35
36
37
38
39
40
41
42
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause



#### Inputs



#### Libraries

if(NOT QT_CONFIGURE_RUNNING)
    find_package(Vulkan)
endif()

#### Tests



#### Features

qt_feature("qt3d-opengl-renderer" PUBLIC
    SECTION "Qt 3D Renderers"
    LABEL "OpenGL Renderer"
    PURPOSE "Use the OpenGL renderer"
)
qt_feature("qt3d-rhi-renderer" PUBLIC
    SECTION "Qt 3D Renderers"
    LABEL "RHI Renderer"
    PURPOSE "Use the RHI renderer (requires qtShaderTools module)"
)
qt_feature("qt3d-vulkan" PUBLIC
    LABEL "Vulkan"
    CONDITION Vulkan_FOUND AND QT_FEATURE_qt3d_rhi_renderer
)
qt_configure_add_summary_section(NAME "Qt 3D APIs")
qt_configure_add_summary_entry(ARGS "qt3d-vulkan")
qt_configure_end_summary_section() # end of "Qt 3D APIs" section
qt_configure_add_summary_section(NAME "Qt 3D Renderers")
qt_configure_add_summary_entry(ARGS "qt3d-opengl-renderer")
qt_configure_add_summary_entry(ARGS "qt3d-rhi-renderer")
qt_configure_end_summary_section() # end of "Qt 3D Renderers" section