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/flatstyle | |
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/flatstyle')
-rw-r--r-- | examples/quickcontrols2/flatstyle/CMakeLists.txt | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/examples/quickcontrols2/flatstyle/CMakeLists.txt b/examples/quickcontrols2/flatstyle/CMakeLists.txt new file mode 100644 index 00000000..87cc012d --- /dev/null +++ b/examples/quickcontrols2/flatstyle/CMakeLists.txt @@ -0,0 +1,55 @@ +# Generated from flatstyle.pro. + +cmake_minimum_required(VERSION 3.14) +project(flatstyle 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) +find_package(Qt6 COMPONENTS Widgets) + +add_qt_gui_executable(flatstyle + main.cpp +) +target_link_libraries(flatstyle PUBLIC + Qt::Core + Qt::Gui + Qt::Quick + Qt::QuickControls2 + Qt::Widgets +) + +# Resources: +set(qmake_immediate_resource_files + "Flat/Button.qml" + "Flat/CheckBox.qml" + "Flat/Switch.qml" + "MainForm.ui.qml" + "flatstyle.qml" + "imports/Theme/Theme.qml" + "imports/Theme/qmldir" + "qtquickcontrols2.conf" +) + +qt6_add_resources(flatstyle "qmake_immediate" + PREFIX + "/" + FILES + ${qmake_immediate_resource_files} +) + + +install(TARGETS flatstyle + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) |