summaryrefslogtreecommitdiffstats
path: root/examples/sql
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sql')
-rw-r--r--examples/sql/CMakeLists.txt17
-rw-r--r--examples/sql/books/CMakeLists.txt30
-rw-r--r--examples/sql/cachedtable/CMakeLists.txt18
-rw-r--r--examples/sql/drilldown/CMakeLists.txt28
-rw-r--r--examples/sql/masterdetail/CMakeLists.txt30
-rw-r--r--examples/sql/querymodel/CMakeLists.txt19
-rw-r--r--examples/sql/relationaltablemodel/CMakeLists.txt17
-rw-r--r--examples/sql/sqlbrowser/CMakeLists.txt29
-rw-r--r--examples/sql/sqlwidgetmapper/CMakeLists.txt17
-rw-r--r--examples/sql/tablemodel/CMakeLists.txt17
10 files changed, 222 insertions, 0 deletions
diff --git a/examples/sql/CMakeLists.txt b/examples/sql/CMakeLists.txt
new file mode 100644
index 0000000000..ca15f22baf
--- /dev/null
+++ b/examples/sql/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from sql.pro.
+
+add_subdirectory(books)
+add_subdirectory(drilldown)
+add_subdirectory(cachedtable)
+add_subdirectory(querymodel)
+add_subdirectory(relationaltablemodel)
+add_subdirectory(sqlwidgetmapper)
+add_subdirectory(tablemodel)
+
+if(TARGET Qt::Xml)
+ add_subdirectory(masterdetail)
+endif()
+
+if(NOT CMAKE_CROSSCOMPILING) # special case
+ add_subdirectory(sqlbrowser)
+endif()
diff --git a/examples/sql/books/CMakeLists.txt b/examples/sql/books/CMakeLists.txt
new file mode 100644
index 0000000000..e01adc1402
--- /dev/null
+++ b/examples/sql/books/CMakeLists.txt
@@ -0,0 +1,30 @@
+# Generated from books.pro.
+
+#####################################################################
+## books Binary:
+#####################################################################
+
+add_qt_executable(books
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/books"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/books"
+ SOURCES
+ bookdelegate.cpp bookdelegate.h
+ bookwindow.cpp bookwindow.h bookwindow.ui
+ initdb.h
+ main.cpp
+ INCLUDE_DIRECTORIES
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ LIBRARIES
+ Qt::Sql
+ Qt::Widgets
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(books "books" PREFIX "/" FILES
+ images/star.png)
+
+
+#### Keys ignored in scope 1:.:books.pro:<NONE>:
+# TEMPLATE = "app"
diff --git a/examples/sql/cachedtable/CMakeLists.txt b/examples/sql/cachedtable/CMakeLists.txt
new file mode 100644
index 0000000000..8e87a32211
--- /dev/null
+++ b/examples/sql/cachedtable/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from cachedtable.pro.
+
+#####################################################################
+## cachedtable Binary:
+#####################################################################
+
+add_qt_executable(cachedtable
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/cachedtable"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/cachedtable"
+ SOURCES
+ ../connection.h
+ main.cpp
+ tableeditor.cpp tableeditor.h
+ LIBRARIES
+ Qt::Sql
+ Qt::Widgets
+)
diff --git a/examples/sql/drilldown/CMakeLists.txt b/examples/sql/drilldown/CMakeLists.txt
new file mode 100644
index 0000000000..a4301d3474
--- /dev/null
+++ b/examples/sql/drilldown/CMakeLists.txt
@@ -0,0 +1,28 @@
+# Generated from drilldown.pro.
+
+#####################################################################
+## drilldown Binary:
+#####################################################################
+
+add_qt_executable(drilldown
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/drilldown"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/drilldown"
+ SOURCES
+ ../connection.h
+ imageitem.cpp imageitem.h
+ informationwindow.cpp informationwindow.h
+ main.cpp
+ view.cpp view.h
+ LIBRARIES
+ Qt::Sql
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(drilldown "drilldown" PREFIX "/" FILES
+ images/qt-creator.png
+ images/qt-logo.png
+ images/qt-project.png
+ images/qt-quick.png)
+
diff --git a/examples/sql/masterdetail/CMakeLists.txt b/examples/sql/masterdetail/CMakeLists.txt
new file mode 100644
index 0000000000..8c73675e55
--- /dev/null
+++ b/examples/sql/masterdetail/CMakeLists.txt
@@ -0,0 +1,30 @@
+# Generated from masterdetail.pro.
+
+#####################################################################
+## masterdetail Binary:
+#####################################################################
+
+add_qt_executable(masterdetail
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/masterdetail"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/masterdetail"
+ SOURCES
+ database.h
+ dialog.cpp dialog.h
+ main.cpp
+ mainwindow.cpp mainwindow.h
+ LIBRARIES
+ Qt::Sql
+ Qt::Widgets
+ Qt::Xml
+ Qt::Widgets
+)
+
+# Resources:
+add_qt_resource(masterdetail "masterdetail" FILES
+ images/icon.png
+ images/image.png)
+
+
+#### Keys ignored in scope 1:.:masterdetail.pro:<NONE>:
+# EXAMPLE_FILES = "albumdetails.xml"
diff --git a/examples/sql/querymodel/CMakeLists.txt b/examples/sql/querymodel/CMakeLists.txt
new file mode 100644
index 0000000000..5c9d48c7f1
--- /dev/null
+++ b/examples/sql/querymodel/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from querymodel.pro.
+
+#####################################################################
+## querymodel Binary:
+#####################################################################
+
+add_qt_executable(querymodel
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/querymodel"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/querymodel"
+ SOURCES
+ ../connection.h
+ customsqlmodel.cpp customsqlmodel.h
+ editablesqlmodel.cpp editablesqlmodel.h
+ main.cpp
+ LIBRARIES
+ Qt::Sql
+ Qt::Widgets
+)
diff --git a/examples/sql/relationaltablemodel/CMakeLists.txt b/examples/sql/relationaltablemodel/CMakeLists.txt
new file mode 100644
index 0000000000..d31042cc73
--- /dev/null
+++ b/examples/sql/relationaltablemodel/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from relationaltablemodel.pro.
+
+#####################################################################
+## relationaltablemodel Binary:
+#####################################################################
+
+add_qt_executable(relationaltablemodel
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/relationaltablemodel"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/relationaltablemodel"
+ SOURCES
+ ../connection.h
+ relationaltablemodel.cpp
+ LIBRARIES
+ Qt::Sql
+ Qt::Widgets
+)
diff --git a/examples/sql/sqlbrowser/CMakeLists.txt b/examples/sql/sqlbrowser/CMakeLists.txt
new file mode 100644
index 0000000000..03111e9049
--- /dev/null
+++ b/examples/sql/sqlbrowser/CMakeLists.txt
@@ -0,0 +1,29 @@
+# Generated from sqlbrowser.pro.
+
+#####################################################################
+## sqlbrowser Binary:
+#####################################################################
+
+add_qt_executable(sqlbrowser
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/sqlbrowser"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/sqlbrowser"
+ SOURCES
+ browser.cpp browser.h
+ browserwidget.ui
+ connectionwidget.cpp connectionwidget.h
+ main.cpp
+ qsqlconnectiondialog.cpp qsqlconnectiondialog.h qsqlconnectiondialog.ui
+ LIBRARIES
+ Qt::Sql
+ Qt::Widgets
+)
+
+#### Keys ignored in scope 1:.:sqlbrowser.pro:<NONE>:
+# TEMPLATE = "app"
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:sqlbrowser.pro:build_all AND NOT build_pass:
+# CONFIG = "-build_all" "release"
diff --git a/examples/sql/sqlwidgetmapper/CMakeLists.txt b/examples/sql/sqlwidgetmapper/CMakeLists.txt
new file mode 100644
index 0000000000..41d95da21e
--- /dev/null
+++ b/examples/sql/sqlwidgetmapper/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from sqlwidgetmapper.pro.
+
+#####################################################################
+## sqlwidgetmapper Binary:
+#####################################################################
+
+add_qt_executable(sqlwidgetmapper
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/sqlwidgetmapper"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/sqlwidgetmapper"
+ SOURCES
+ main.cpp
+ window.cpp window.h
+ LIBRARIES
+ Qt::Sql
+ Qt::Widgets
+)
diff --git a/examples/sql/tablemodel/CMakeLists.txt b/examples/sql/tablemodel/CMakeLists.txt
new file mode 100644
index 0000000000..68644a4b3d
--- /dev/null
+++ b/examples/sql/tablemodel/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from tablemodel.pro.
+
+#####################################################################
+## tablemodel Binary:
+#####################################################################
+
+add_qt_executable(tablemodel
+ GUI
+ OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/tablemodel"
+ INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/tablemodel"
+ SOURCES
+ ../connection.h
+ tablemodel.cpp
+ LIBRARIES
+ Qt::Sql
+ Qt::Widgets
+)