From 833d8c305b8cc01ab2d7958a2ba5a061a9e966ef Mon Sep 17 00:00:00 2001 From: Leander Beernaert Date: Tue, 24 Sep 2019 13:26:43 +0200 Subject: Conversion of QtQuickControls2 examples Initial Conversion of QtQuickControls2 examples. Change-Id: I21ddf792d039dc26e4ba58d8592101eb131618d3 Reviewed-by: Qt CMake Build Bot Reviewed-by: Alexandru Croitor --- examples/quickcontrols2/flatstyle/CMakeLists.txt | 55 ++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 examples/quickcontrols2/flatstyle/CMakeLists.txt (limited to 'examples/quickcontrols2/flatstyle') 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}" +) -- cgit v1.2.3