summaryrefslogtreecommitdiffstats
path: root/src/core/configure.cmake
blob: 7a054361942531f16d64157200eff34803c66eae (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause



#### Inputs

# input qt3d-assimp
set(INPUT_qt3d_assimp "undefined" CACHE STRING "")
set_property(CACHE INPUT_qt3d_assimp PROPERTY STRINGS undefined qt system no)



#### Libraries

qt_find_package(WrapQt3DAssimp 5 PROVIDED_TARGETS WrapQt3DAssimp::WrapQt3DAssimp MODULE_NAME 3dcore QMAKE_LIB qt3d-assimp)

qt_config_compile_test("assimp"
                   LABEL ""
                   PROJECT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../config.tests/assimp"
# special case begin
                   LIBRARIES WrapQt3DAssimp::WrapQt3DAssimp
                   PACKAGES PACKAGE WrapQt3DAssimp 5
# special case end
)


#### Tests



#### Features

qt_feature("qt3d-assimp" PUBLIC PRIVATE
    LABEL "Assimp"
)
qt_feature_definition("qt3d-assimp" "QT_NO_QT3D_ASSIMP" NEGATE VALUE "1")
qt_feature("qt3d-system-assimp" PRIVATE
    LABEL "System Assimp"
    CONDITION QT_FEATURE_qt3d_assimp AND TEST_assimp
    ENABLE INPUT_assimp STREQUAL 'system'
    DISABLE INPUT_assimp STREQUAL 'qt'
)
qt_feature("qt3d-render" PUBLIC
    SECTION "Aspects"
    LABEL "Render aspect"
    PURPOSE "Use the 3D Render Aspect library"
)
qt_feature("qt3d-input" PUBLIC
    SECTION "Aspects"
    LABEL "Input aspect"
    PURPOSE "Use the 3D Input Aspect library"
)
qt_feature("qt3d-logic" PUBLIC
    SECTION "Aspects"
    LABEL "Logic aspect"
    PURPOSE "Use the 3D Logic Aspect library"
)
qt_feature("qt3d-extras" PUBLIC
    SECTION "Aspects"
    LABEL "Extras aspect"
    PURPOSE "Use the 3D Extra library"
    CONDITION QT_FEATURE_qt3d_render AND QT_FEATURE_qt3d_input AND QT_FEATURE_qt3d_logic
)
qt_feature("qt3d-animation" PUBLIC
    SECTION "Aspects"
    LABEL "Animation aspect"
    PURPOSE "Use the 3D Animation Aspect library"
    CONDITION QT_FEATURE_qt3d_render
)
qt_configure_add_summary_section(NAME "Qt 3D")
qt_configure_add_summary_entry(ARGS "qt3d-assimp")
qt_configure_add_summary_entry(ARGS "qt3d-system-assimp")
qt_configure_add_summary_section(NAME "Aspects")
qt_configure_add_summary_entry(ARGS "qt3d-render")
qt_configure_add_summary_entry(ARGS "qt3d-input")
qt_configure_add_summary_entry(ARGS "qt3d-logic")
qt_configure_add_summary_entry(ARGS "qt3d-animation")
qt_configure_add_summary_entry(ARGS "qt3d-extras")
qt_configure_end_summary_section() # end of "Aspects" section
qt_configure_end_summary_section() # end of "Qt 3D" section