2022-07-05 13:11:56 +00:00
|
|
|
# Copyright (C) 2022 The Qt Company Ltd.
|
2022-08-22 13:39:32 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2022-07-05 13:11:56 +00:00
|
|
|
|
2021-08-16 16:14:46 +00:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2020-05-08 13:06:53 +00:00
|
|
|
project(compute-particles LANGUAGES CXX)
|
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
|
2022-01-21 15:14:58 +00:00
|
|
|
find_package(Qt6 REQUIRED COMPONENTS 3DCore 3DInput 3DQuick 3DRender Core Gui Qml Quick)
|
2020-05-08 13:06:53 +00:00
|
|
|
|
2020-10-16 14:33:57 +00:00
|
|
|
qt_add_executable(compute-particles
|
2020-05-08 13:06:53 +00:00
|
|
|
main.cpp
|
|
|
|
)
|
2022-01-21 15:14:58 +00:00
|
|
|
|
2021-05-18 13:11:15 +00:00
|
|
|
set_target_properties(compute-particles PROPERTIES
|
|
|
|
WIN32_EXECUTABLE TRUE
|
|
|
|
MACOSX_BUNDLE TRUE
|
|
|
|
)
|
2022-01-21 15:14:58 +00:00
|
|
|
|
2020-05-08 13:06:53 +00:00
|
|
|
target_link_libraries(compute-particles PUBLIC
|
|
|
|
Qt::3DCore
|
|
|
|
Qt::3DInput
|
|
|
|
Qt::3DQuick
|
|
|
|
Qt::3DRender
|
|
|
|
Qt::Core
|
|
|
|
Qt::Gui
|
|
|
|
Qt::Qml
|
|
|
|
Qt::Quick
|
|
|
|
)
|
|
|
|
|
|
|
|
# Resources:
|
|
|
|
set(compute-particles_resource_files
|
|
|
|
"ComputeFrameGraph.qml"
|
|
|
|
"ComputeMaterial.qml"
|
|
|
|
"ParticlesScene.qml"
|
|
|
|
"main.qml"
|
2020-11-24 10:27:12 +00:00
|
|
|
"shaders/gl43/particles.comp"
|
|
|
|
"shaders/gl43/particles.frag"
|
|
|
|
"shaders/gl43/particles.vert"
|
|
|
|
"shaders/gl45/particles.comp"
|
|
|
|
"shaders/gl45/particles.frag"
|
|
|
|
"shaders/gl45/particles.vert"
|
2020-05-08 13:06:53 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
qt6_add_resources(compute-particles "compute-particles"
|
|
|
|
PREFIX
|
|
|
|
"/"
|
|
|
|
FILES
|
|
|
|
${compute-particles_resource_files}
|
|
|
|
)
|