Skip to content
Snippets Groups Projects
Commit 416d3126 authored by Christian Strømme's avatar Christian Strømme
Browse files

Add CMakeLists.txt for the submeshes example


Fixes: QTBUG-87811
Change-Id: I5ced00e74ee413e2c5d768b157d53e0d7915f8bf
Reviewed-by: default avatarAlexandru Croitor <alexandru.croitor@qt.io>
parent c2fc8b0f
No related branches found
No related tags found
No related merge requests found
# Generated from submeshes.pro.
cmake_minimum_required(VERSION 3.14)
project(submeshes LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
if(NOT DEFINED INSTALL_EXAMPLESDIR)
set(INSTALL_EXAMPLESDIR "examples")
endif()
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/quick3d/submeshes")
find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)
find_package(Qt6 COMPONENTS Quick)
find_package(Qt6 COMPONENTS Quick3D)
qt_add_executable(submeshes
main.cpp
)
target_link_libraries(submeshes PUBLIC
Qt::Core
Qt::Gui
Qt::Quick
Qt::Quick3D
)
# Resources:
set(meshes_resource_files
"meshes/distortedcube.mesh"
)
qt6_add_resources(submeshes "meshes"
PREFIX
"/"
FILES
${meshes_resource_files}
)
set(qml_resource_files
"qml/DistortedCube.qml"
"qml/main.qml"
)
qt6_add_resources(submeshes "qml"
PREFIX
"/"
FILES
${qml_resource_files}
)
install(TARGETS submeshes
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment