| 1 |
# Copyright (C) 2022 The Qt Company Ltd. |
| 2 |
# SPDX-License-Identifier: BSD-3-Clause |
| 3 |
|
| 4 |
qt_internal_add_qml_module(3DQuickScene3D |
| 5 |
URI "QtQuick.Scene3D" |
| 6 |
VERSION "${PROJECT_VERSION}" |
| 7 |
PAST_MAJOR_VERSIONS 2 |
| 8 |
PLUGIN_TARGET qtquickscene3dplugin |
| 9 |
SOURCES |
| 10 |
scene3ditem.cpp scene3ditem_p.h |
| 11 |
scene3dlogging.cpp scene3dlogging_p.h |
| 12 |
scene3drenderer.cpp scene3drenderer_p.h |
| 13 |
scene3dsgmaterial.cpp scene3dsgmaterial_p.h |
| 14 |
scene3dsgmaterialshader.cpp scene3dsgmaterialshader_p.h |
| 15 |
scene3dsgnode.cpp scene3dsgnode_p.h |
| 16 |
DEPENDENCIES |
| 17 |
Qt3D.Core/auto |
| 18 |
QtQuick/auto |
| 19 |
PUBLIC_LIBRARIES |
| 20 |
Qt::3DCore |
| 21 |
Qt::Core |
| 22 |
Qt::Quick |
| 23 |
LIBRARIES |
| 24 |
Qt::3DRender |
| 25 |
Qt::3DRenderPrivate |
| 26 |
Qt::Gui |
| 27 |
Qt::Qml |
| 28 |
Qt::CorePrivate |
| 29 |
Qt::QuickPrivate |
| 30 |
) |
| 31 |
|
| 32 |
qt_internal_extend_target(3DQuickScene3D CONDITION QT_FEATURE_qt3d_input |
| 33 |
LIBRARIES |
| 34 |
Qt::3DInput |
| 35 |
) |
| 36 |
|
| 37 |
qt_internal_extend_target(3DQuickScene3D CONDITION QT_FEATURE_qt3d_logic |
| 38 |
LIBRARIES |
| 39 |
Qt::3DLogic |
| 40 |
) |
| 41 |
|
| 42 |
qt_internal_extend_target(3DQuickScene3D CONDITION QT_FEATURE_qt3d_animation |
| 43 |
LIBRARIES |
| 44 |
Qt::3DAnimation |
| 45 |
) |
| 46 |
|
| 47 |
# Resources: |
| 48 |
set(shader_resource_files |
| 49 |
"shaders/scene3dmaterial.vert.qsb" |
| 50 |
"shaders/scene3dmaterial.frag.qsb" |
| 51 |
) |
| 52 |
qt_internal_add_resource(3DQuickScene3D "scene3d" |
| 53 |
PREFIX |
| 54 |
"/" |
| 55 |
FILES |
| 56 |
${shader_resource_files} |
| 57 |
) |