Revision control
Copy as Markdown
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
cmake_minimum_required(VERSION 3.16)
project(assimp_qt3d LANGUAGES CXX)
find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
endif()
# Generated from assimp.pro.
#####################################################################
## assimp Binary:
#####################################################################
qt_internal_add_manual_test(assimp_qt3d
GUI
SOURCES
main.cpp
LIBRARIES
Qt::3DCore
Qt::3DExtras
Qt::3DInput
Qt::3DQuick
Qt::3DQuickExtras
Qt::3DRender
Qt::Gui
Qt::Qml
Qt::Quick
)
# Resources:
set(assimp_resource_files
"main.qml"
)
qt_internal_add_resource(assimp_qt3d "assimp"
PREFIX
"/"
FILES
${assimp_resource_files}
)
set(test_scene_resource_files
"../exampleresources/assets/test_scene.dae"
)
qt_internal_add_resource(assimp_qt3d "test_scene"
PREFIX
"/"
BASE
"../exampleresources"
FILES
${test_scene_resource_files}
)
set(obj_resource_files
"../exampleresources/assets/obj/ball.obj"
"../exampleresources/assets/obj/material-sphere.obj"
"../exampleresources/assets/obj/plane-10x10.obj"
"../exampleresources/assets/obj/toyplane.obj"
"../exampleresources/assets/obj/trefoil.obj"
)
qt_internal_add_resource(assimp_qt3d "obj"
PREFIX
"/"
BASE
"../exampleresources"
FILES
${obj_resource_files}
)
#### Keys ignored in scope 1:.:.:assimp.pro:<TRUE>:
# OTHER_FILES = "main.qml"
# SOURCE = "main.cpp"
## Scopes:
#####################################################################