diff options
Diffstat (limited to 'examples/quick/models/objectlistmodel/CMakeLists.txt')
-rw-r--r-- | examples/quick/models/objectlistmodel/CMakeLists.txt | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/examples/quick/models/objectlistmodel/CMakeLists.txt b/examples/quick/models/objectlistmodel/CMakeLists.txt new file mode 100644 index 0000000000..b8be29ee4a --- /dev/null +++ b/examples/quick/models/objectlistmodel/CMakeLists.txt @@ -0,0 +1,47 @@ +# Generated from objectlistmodel.pro. + +cmake_minimum_required(VERSION 3.14) +project(objectlistmodel LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Qml) +find_package(Qt6 COMPONENTS Quick) + +add_qt_gui_executable(objectlistmodel + dataobject.cpp dataobject.h + main.cpp +) +target_link_libraries(objectlistmodel PUBLIC + Qt::Core + Qt::Gui + Qt::Qml + Qt::Quick +) + +# Resources: +set(objectlistmodel_resource_files + "view.qml" +) + +QT6_ADD_RESOURCES(objectlistmodel "objectlistmodel" + PREFIX + "/" + FILES + ${objectlistmodel_resource_files} +) + + +install(TARGETS objectlistmodel + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) |