Debian Codegraph @

tests/manual/compute-particles/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(compute-particles LANGUAGES CXX)
6
7 set(CMAKE_AUTOMOC ON)
8
9 find_package(Qt6 REQUIRED COMPONENTS 3DCore 3DInput 3DQuick 3DRender Core Gui Qml Quick)
10
11 qt_add_executable(compute-particles
12 main.cpp
13 )
14
15 set_target_properties(compute-particles PROPERTIES
16 WIN32_EXECUTABLE TRUE
17 MACOSX_BUNDLE TRUE
18 )
19
20 target_link_libraries(compute-particles PUBLIC
21 Qt::3DCore
22 Qt::3DInput
23 Qt::3DQuick
24 Qt::3DRender
25 Qt::Core
26 Qt::Gui
27 Qt::Qml
28 Qt::Quick
29 )
30
31 # Resources:
32 set(compute-particles_resource_files
33 "ComputeFrameGraph.qml"
34 "ComputeMaterial.qml"
35 "ParticlesScene.qml"
36 "main.qml"
37 "shaders/gl43/particles.comp"
38 "shaders/gl43/particles.frag"
39 "shaders/gl43/particles.vert"
40 "shaders/gl45/particles.comp"
41 "shaders/gl45/particles.frag"
42 "shaders/gl45/particles.vert"
43 )
44
45 qt6_add_resources(compute-particles "compute-particles"
46 PREFIX
47 "/"
48 FILES
49 ${compute-particles_resource_files}
50 )