| 1 |
# Copyright (C) 2022 The Qt Company Ltd. |
| 2 |
# SPDX-License-Identifier: BSD-3-Clause |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
#### Inputs |
| 7 |
|
| 8 |
# input qt3d-assimp |
| 9 |
set(INPUT_qt3d_assimp "undefined" CACHE STRING "") |
| 10 |
set_property(CACHE INPUT_qt3d_assimp PROPERTY STRINGS undefined qt system no) |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
#### Libraries |
| 15 |
|
| •16 |
qt_find_package(WrapQt3DAssimp 6 PROVIDED_TARGETS WrapQt3DAssimp::WrapQt3DAssimp MODULE_NAME 3dcore QMAKE_LIB qt3d-assimp) |
| 17 |
|
| 18 |
qt_config_compile_test("assimp" |
| 19 |
LABEL "" |
| 20 |
PROJECT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../config.tests/assimp" |
| 21 |
# special case begin |
| 22 |
LIBRARIES WrapQt3DAssimp::WrapQt3DAssimp |
| •23 |
PACKAGES PACKAGE WrapQt3DAssimp 6 |
| 24 |
# special case end |
| 25 |
) |
| 26 |
|
| 27 |
|
| 28 |
#### Tests |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
#### Features |
| 33 |
|
| 34 |
qt_feature("qt3d-assimp" PUBLIC PRIVATE |
| 35 |
LABEL "Assimp" |
| 36 |
) |
| 37 |
qt_feature_definition("qt3d-assimp" "QT_NO_QT3D_ASSIMP" NEGATE VALUE "1") |
| 38 |
qt_feature("qt3d-system-assimp" PRIVATE |
| 39 |
LABEL "System Assimp" |
| 40 |
CONDITION QT_FEATURE_qt3d_assimp AND TEST_assimp |
| 41 |
ENABLE INPUT_assimp STREQUAL 'system' |
| 42 |
DISABLE INPUT_assimp STREQUAL 'qt' |
| 43 |
) |
| 44 |
qt_feature("qt3d-render" PUBLIC |
| 45 |
SECTION "Aspects" |
| 46 |
LABEL "Render aspect" |
| 47 |
PURPOSE "Use the 3D Render Aspect library" |
| 48 |
) |
| 49 |
qt_feature("qt3d-input" PUBLIC |
| 50 |
SECTION "Aspects" |
| 51 |
LABEL "Input aspect" |
| 52 |
PURPOSE "Use the 3D Input Aspect library" |
| 53 |
) |
| 54 |
qt_feature("qt3d-logic" PUBLIC |
| 55 |
SECTION "Aspects" |
| 56 |
LABEL "Logic aspect" |
| 57 |
PURPOSE "Use the 3D Logic Aspect library" |
| 58 |
) |
| 59 |
qt_feature("qt3d-extras" PUBLIC |
| 60 |
SECTION "Aspects" |
| 61 |
LABEL "Extras aspect" |
| 62 |
PURPOSE "Use the 3D Extra library" |
| 63 |
CONDITION QT_FEATURE_qt3d_render AND QT_FEATURE_qt3d_input AND QT_FEATURE_qt3d_logic |
| 64 |
) |
| 65 |
qt_feature("qt3d-animation" PUBLIC |
| 66 |
SECTION "Aspects" |
| 67 |
LABEL "Animation aspect" |
| 68 |
PURPOSE "Use the 3D Animation Aspect library" |
| 69 |
CONDITION QT_FEATURE_qt3d_render |
| 70 |
) |
| 71 |
qt_configure_add_summary_section(NAME "Qt 3D") |
| 72 |
qt_configure_add_summary_entry(ARGS "qt3d-assimp") |
| 73 |
qt_configure_add_summary_entry(ARGS "qt3d-system-assimp") |
| 74 |
qt_configure_add_summary_section(NAME "Aspects") |
| 75 |
qt_configure_add_summary_entry(ARGS "qt3d-render") |
| 76 |
qt_configure_add_summary_entry(ARGS "qt3d-input") |
| 77 |
qt_configure_add_summary_entry(ARGS "qt3d-logic") |
| 78 |
qt_configure_add_summary_entry(ARGS "qt3d-animation") |
| 79 |
qt_configure_add_summary_entry(ARGS "qt3d-extras") |
| 80 |
qt_configure_end_summary_section() # end of "Aspects" section |
| 81 |
qt_configure_end_summary_section() # end of "Qt 3D" section |