diff options
author | Leander Beernaert <leander.beernaert@qt.io> | 2019-09-24 13:26:43 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-10-08 16:25:53 +0000 |
commit | 833d8c305b8cc01ab2d7958a2ba5a061a9e966ef (patch) | |
tree | 379903422009964dd25182b99ef10249a4b59dbb /examples/quickcontrols2/texteditor | |
parent | 2d4f2f1f4a4ff2f6e6189d9206875927d529f4c2 (diff) |
Conversion of QtQuickControls2 examples
Initial Conversion of QtQuickControls2 examples.
Change-Id: I21ddf792d039dc26e4ba58d8592101eb131618d3
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/quickcontrols2/texteditor')
-rw-r--r-- | examples/quickcontrols2/texteditor/CMakeLists.txt | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/examples/quickcontrols2/texteditor/CMakeLists.txt b/examples/quickcontrols2/texteditor/CMakeLists.txt new file mode 100644 index 0000000000..3ac0a49814 --- /dev/null +++ b/examples/quickcontrols2/texteditor/CMakeLists.txt @@ -0,0 +1,53 @@ +# Generated from texteditor.pro. + +cmake_minimum_required(VERSION 3.14) +project(texteditor 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 Quick) +find_package(Qt6 COMPONENTS QuickControls2) + +add_qt_gui_executable(texteditor + documenthandler.cpp documenthandler.h + texteditor.cpp +) +target_link_libraries(texteditor PUBLIC + Qt::Core + Qt::Gui + Qt::Quick + Qt::QuickControls2 +) + +# Resources: +set(texteditor_resource_files + "+touch/texteditor.html" + "fonts/fontello.ttf" + "images/qt-logo.png" + "qml/+touch/texteditor.qml" + "qml/texteditor.qml" + "qtquickcontrols2.conf" + "texteditor.html" +) + +qt6_add_resources(texteditor "texteditor" + PREFIX + "/" + FILES + ${texteditor_resource_files} +) + + +install(TARGETS texteditor + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) |