adapted from: qt-wgpu-skel: * 751408ea92268a16a6931862cb00e8dbccb4e47e replace custom FFI with Diplomat * 46ce52c2bf2f8ab76a68c284a2f70556a29d7c3b reduce the unsafe part to the GPU initialization * 784e99b31c4ae3ab0f97ec26045511d00683d66b move the GPU initialization out of the bridge
17 lines
419 B
CMake
17 lines
419 B
CMake
cmake_minimum_required(VERSION 3.18...4.2)
|
|
|
|
project(photon-light VERSION 1.0.0 LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
find_package(Qt6 REQUIRED COMPONENTS Gui Widgets)
|
|
find_program(CARGO cargo REQUIRED)
|
|
set(CARGO_TARGET_DIR "${CMAKE_SOURCE_DIR}/target" CACHE PATH "Path to the Cargo target directory")
|
|
|
|
include(diplomat.cmake)
|
|
|
|
qt_standard_project_setup()
|
|
|
|
add_subdirectory(ui)
|