Debian Codegraph @

tests/manual/widgets-scene3d/CMakeLists.txt

raw
1 # Copyright (C) 2022 The Qt Company Ltd.
2 # SPDX-License-Identifier: BSD-3-Clause
3
4 cmake_minimum_required(VERSION 3.16)
5 project(widgets-scene3d LANGUAGES CXX)
6
7 set(CMAKE_AUTOMOC ON)
8
9 find_package(Qt6 REQUIRED COMPONENTS 3DInput Core Gui Qml Quick QuickWidgets Widgets)
10
11 qt_add_executable(widgets-scene3d
12 main.cpp
13 )
14
15 set_target_properties(widgets-scene3d PROPERTIES
16 WIN32_EXECUTABLE TRUE
17 MACOSX_BUNDLE TRUE
18 )
19
20 target_link_libraries(widgets-scene3d PUBLIC
21 Qt::3DInput
22 Qt::Core
23 Qt::Gui
24 Qt::Qml
25 Qt::Quick
26 Qt::QuickWidgets
27 Qt::Widgets
28 )
29
30 # Resources:
31 set_source_files_properties("../scene3d/AnimatedEntity.qml"
32 PROPERTIES QT_RESOURCE_ALIAS "AnimatedEntity.qml"
33 )
34
35 set_source_files_properties("../scene3d/main.qml"
36 PROPERTIES QT_RESOURCE_ALIAS "main.qml"
37 )
38
39 set(widgets-scene3d_resource_files
40 "../scene3d/AnimatedEntity.qml"
41 "../scene3d/main.qml"
42 )
43
44 qt6_add_resources(widgets-scene3d "widgets-scene3d"
45 PREFIX
46 "/"
47 FILES
48 ${widgets-scene3d_resource_files}
49 )