From aa50b377a7d904e35cf3a26e4c8a054108011ffd Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Wed, 20 Mar 2019 13:41:37 +0100 Subject: CMake: Add widgets examples Change-Id: Ib6142b93df066e3658eb189b50ca74c455fe7e56 Reviewed-by: Alexandru Croitor --- .../tutorials/modelview/1_readonly/CMakeLists.txt | 19 +++++++++++++++++++ .../tutorials/modelview/2_formatting/CMakeLists.txt | 19 +++++++++++++++++++ .../modelview/3_changingmodel/CMakeLists.txt | 19 +++++++++++++++++++ .../tutorials/modelview/4_headers/CMakeLists.txt | 19 +++++++++++++++++++ .../tutorials/modelview/5_edit/CMakeLists.txt | 20 ++++++++++++++++++++ .../tutorials/modelview/6_treeview/CMakeLists.txt | 19 +++++++++++++++++++ .../tutorials/modelview/7_selections/CMakeLists.txt | 19 +++++++++++++++++++ examples/widgets/tutorials/modelview/CMakeLists.txt | 9 +++++++++ 8 files changed, 143 insertions(+) create mode 100644 examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt create mode 100644 examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt create mode 100644 examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt create mode 100644 examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt create mode 100644 examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt create mode 100644 examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt create mode 100644 examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt create mode 100644 examples/widgets/tutorials/modelview/CMakeLists.txt (limited to 'examples/widgets/tutorials/modelview') diff --git a/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt b/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt new file mode 100644 index 0000000000..1edda802f9 --- /dev/null +++ b/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt @@ -0,0 +1,19 @@ +# Generated from 1_readonly.pro. + +##################################################################### +## mv_readonly Binary: +##################################################################### + +add_qt_executable(mv_readonly + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/1_readonly" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/1_readonly" + SOURCES + main.cpp + mymodel.cpp mymodel.h + LIBRARIES + Qt::Widgets +) + +#### Keys ignored in scope 1:.:1_readonly.pro:: +# TEMPLATE = "app" diff --git a/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt b/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt new file mode 100644 index 0000000000..3235275d6a --- /dev/null +++ b/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt @@ -0,0 +1,19 @@ +# Generated from 2_formatting.pro. + +##################################################################### +## mv_formatting Binary: +##################################################################### + +add_qt_executable(mv_formatting + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/2_formatting" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/2_formatting" + SOURCES + main.cpp + mymodel.cpp mymodel.h + LIBRARIES + Qt::Widgets +) + +#### Keys ignored in scope 1:.:2_formatting.pro:: +# TEMPLATE = "app" diff --git a/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt b/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt new file mode 100644 index 0000000000..746bafc19a --- /dev/null +++ b/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt @@ -0,0 +1,19 @@ +# Generated from 3_changingmodel.pro. + +##################################################################### +## mv_changingmodel Binary: +##################################################################### + +add_qt_executable(mv_changingmodel + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/3_changingmodel" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/3_changingmodel" + SOURCES + main.cpp + mymodel.cpp mymodel.h + LIBRARIES + Qt::Widgets +) + +#### Keys ignored in scope 1:.:3_changingmodel.pro:: +# TEMPLATE = "app" diff --git a/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt b/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt new file mode 100644 index 0000000000..ef7e0a501b --- /dev/null +++ b/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt @@ -0,0 +1,19 @@ +# Generated from 4_headers.pro. + +##################################################################### +## mv_headers Binary: +##################################################################### + +add_qt_executable(mv_headers + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/4_headers" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/4_headers" + SOURCES + main.cpp + mymodel.cpp mymodel.h + LIBRARIES + Qt::Widgets +) + +#### Keys ignored in scope 1:.:4_headers.pro:: +# TEMPLATE = "app" diff --git a/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt b/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt new file mode 100644 index 0000000000..2ce884a7fe --- /dev/null +++ b/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt @@ -0,0 +1,20 @@ +# Generated from 5_edit.pro. + +##################################################################### +## mv_edit Binary: +##################################################################### + +add_qt_executable(mv_edit + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/5_edit" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/5_edit" + SOURCES + main.cpp + mainwindow.cpp mainwindow.h + mymodel.cpp mymodel.h + LIBRARIES + Qt::Widgets +) + +#### Keys ignored in scope 1:.:5_edit.pro:: +# TEMPLATE = "app" diff --git a/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt b/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt new file mode 100644 index 0000000000..1d5a9425e5 --- /dev/null +++ b/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt @@ -0,0 +1,19 @@ +# Generated from 6_treeview.pro. + +##################################################################### +## mv_tree Binary: +##################################################################### + +add_qt_executable(mv_tree + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/6_treeview" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/6_treeview" + SOURCES + main.cpp + mainwindow.cpp mainwindow.h + LIBRARIES + Qt::Widgets +) + +#### Keys ignored in scope 1:.:6_treeview.pro:: +# TEMPLATE = "app" diff --git a/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt b/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt new file mode 100644 index 0000000000..0560dc7a60 --- /dev/null +++ b/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt @@ -0,0 +1,19 @@ +# Generated from 7_selections.pro. + +##################################################################### +## mv_selections Binary: +##################################################################### + +add_qt_executable(mv_selections + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/7_selections" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/tutorials/modelview/7_selections" + SOURCES + main.cpp + mainwindow.cpp mainwindow.h + LIBRARIES + Qt::Widgets +) + +#### Keys ignored in scope 1:.:7_selections.pro:: +# TEMPLATE = "app" diff --git a/examples/widgets/tutorials/modelview/CMakeLists.txt b/examples/widgets/tutorials/modelview/CMakeLists.txt new file mode 100644 index 0000000000..10f2cf6ecf --- /dev/null +++ b/examples/widgets/tutorials/modelview/CMakeLists.txt @@ -0,0 +1,9 @@ +# Generated from modelview.pro. + +add_subdirectory(1_readonly) +add_subdirectory(2_formatting) +add_subdirectory(3_changingmodel) +add_subdirectory(4_headers) +add_subdirectory(5_edit) +add_subdirectory(6_treeview) +add_subdirectory(7_selections) -- cgit v1.2.3