diff options
author | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2019-11-01 10:14:20 +0100 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2019-11-06 16:02:45 +0000 |
commit | 82525a2b3861ad695c156c2cac4239134f8ac922 (patch) | |
tree | cde4956a08e4395f81afc201d01b6da0fde12592 /examples/quick/scenegraph/vulkanunderqml | |
parent | 771b6f59e2df79f5a0cbf50b592d73ec131cc6a9 (diff) |
cmake: Add missing examples
Compilation fails when vulkan headers are found but the example has no
CMakeLists.txt. I assume it's the same for metal.
Change-Id: Ib93b5ff84fb801a5a6801bf600b712579fac8df5
Reviewed-by: Qt CMake Build Bot
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'examples/quick/scenegraph/vulkanunderqml')
-rw-r--r-- | examples/quick/scenegraph/vulkanunderqml/CMakeLists.txt | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/examples/quick/scenegraph/vulkanunderqml/CMakeLists.txt b/examples/quick/scenegraph/vulkanunderqml/CMakeLists.txt new file mode 100644 index 0000000000..65442e3790 --- /dev/null +++ b/examples/quick/scenegraph/vulkanunderqml/CMakeLists.txt @@ -0,0 +1,49 @@ +# Generated from vulkanunderqml.pro. + +cmake_minimum_required(VERSION 3.14) +project(vulkanunderqml LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/quick/scenegraph/vulkanunderqml") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Qml) +find_package(Qt6 COMPONENTS Quick) + +add_qt_gui_executable(vulkanunderqml + main.cpp + vulkansquircle.cpp vulkansquircle.h +) +target_link_libraries(vulkanunderqml PUBLIC + Qt::Core + Qt::Gui + Qt::Qml + Qt::Quick +) + + +# Resources: +set(vulkanunderqml_resource_files + "main.qml" + "squircle.frag.spv" + "squircle.vert.spv" +) + +qt6_add_resources(vulkanunderqml "vulkanunderqml" + PREFIX + "/scenegraph/vulkanunderqml" + FILES + ${vulkanunderqml_resource_files} +) + +install(TARGETS vulkanunderqml + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) |