diff options
author | Mike Krus <mike.krus@kdab.com> | 2020-05-08 14:06:53 +0100 |
---|---|---|
committer | Mike Krus <mike.krus@kdab.com> | 2020-05-22 08:53:50 +0100 |
commit | 22dd30949938083aceda8267c41c920c61c0d388 (patch) | |
tree | a49704414a853624006b860d1a92689bc4f5ca88 /tests/manual/gooch-qml | |
parent | 5596989f92fd36615e203215ef274bff80bb7e31 (diff) |
Add support for building with CMake
Change-Id: If6c887c6356a160a5f3fb906d38a341fff0c7b29
Reviewed-by: Mike Krus <mike.krus@kdab.com>
Diffstat (limited to 'tests/manual/gooch-qml')
-rw-r--r-- | tests/manual/gooch-qml/CMakeLists.txt | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/tests/manual/gooch-qml/CMakeLists.txt b/tests/manual/gooch-qml/CMakeLists.txt new file mode 100644 index 000000000..e2312a2b9 --- /dev/null +++ b/tests/manual/gooch-qml/CMakeLists.txt @@ -0,0 +1,71 @@ +# Generated from gooch-qml.pro. + +##################################################################### +## gooch-qml Binary: +##################################################################### + +qt_add_manual_test(gooch-qml + GUI + SOURCES + main.cpp + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DInput + Qt::3DQuick + Qt::3DQuickExtras + Qt::3DRender + Qt::Gui + Qt::Qml + Qt::Quick +) + +# Resources: +set(gooch-qml_resource_files + "MyEntity.qml" + "main.qml" +) + +qt_add_resource(gooch-qml "gooch-qml" + PREFIX + "/" + FILES + ${gooch-qml_resource_files} +) +set_source_files_properties("../../../examples/qt3d/exampleresources/assets/obj/ball.obj" + PROPERTIES QT_RESOURCE_ALIAS "assets/obj/ball.obj" +) +set_source_files_properties("../../../examples/qt3d/exampleresources/assets/obj/material-sphere.obj" + PROPERTIES QT_RESOURCE_ALIAS "assets/obj/material-sphere.obj" +) +set_source_files_properties("../../../examples/qt3d/exampleresources/assets/obj/plane-10x10.obj" + PROPERTIES QT_RESOURCE_ALIAS "assets/obj/plane-10x10.obj" +) +set_source_files_properties("../../../examples/qt3d/exampleresources/assets/obj/toyplane.obj" + PROPERTIES QT_RESOURCE_ALIAS "assets/obj/toyplane.obj" +) +set_source_files_properties("../../../examples/qt3d/exampleresources/assets/obj/trefoil.obj" + PROPERTIES QT_RESOURCE_ALIAS "assets/obj/trefoil.obj" +) +set(obj_resource_files + "assets/obj/ball.obj" + "assets/obj/material-sphere.obj" + "assets/obj/plane-10x10.obj" + "assets/obj/toyplane.obj" + "assets/obj/trefoil.obj" +) + +qt_add_resource(gooch-qml "obj" + PREFIX + "/" + BASE + "../../../examples/qt3d/exampleresources" + FILES + ${obj_resource_files} +) + + +#### Keys ignored in scope 1:.:.:gooch-qml.pro:<TRUE>: +# OTHER_FILES = "main.qml" "MyEntity.qml" + +## Scopes: +##################################################################### |