summaryrefslogtreecommitdiffstats
path: root/src/plugins/sqldrivers/odbc
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals.cid@kdab.com>2019-02-12 14:55:20 +0100
committerAlbert Astals Cid <albert.astals.cid@kdab.com>2019-02-12 14:39:50 +0000
commit0a14d13b3082bb245ddbb839e15025b9709f4eff (patch)
tree776c2cada53c51caeb073029e314fea4f6c74129 /src/plugins/sqldrivers/odbc
parent11acba6504560dde54e94989b84df94157f9cc00 (diff)
cmake: Find and build odbc plugin
Change-Id: I479d2b1cc897f601ef68b10272c9396e52228201 Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'src/plugins/sqldrivers/odbc')
-rw-r--r--src/plugins/sqldrivers/odbc/CMakeLists.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/plugins/sqldrivers/odbc/CMakeLists.txt b/src/plugins/sqldrivers/odbc/CMakeLists.txt
new file mode 100644
index 0000000000..792edb4c82
--- /dev/null
+++ b/src/plugins/sqldrivers/odbc/CMakeLists.txt
@@ -0,0 +1,32 @@
+# Generated from odbc.pro.
+
+find_package(ODBC)
+
+#####################################################################
+## qsqlodbc Plugin:
+#####################################################################
+
+add_qt_plugin(qsqlodbc
+ TYPE sqldrivers
+ SOURCES
+ main.cpp
+ qsql_odbc.cpp qsql_odbc_p.h
+ DEFINES
+ QT_NO_CAST_TO_ASCII
+ QT_NO_CAST_FROM_ASCII
+ LIBRARIES
+ Qt::CorePrivate
+ Qt::SqlPrivate
+ ODBC::ODBC
+ # OTHER_FILES = "odbc.json"
+ # PLUGIN_CLASS_NAME = "QODBCDriverPlugin"
+ # _LOADED = "qt_plugin"
+)
+
+## Scopes:
+#####################################################################
+
+extend_target(qsqlodbc CONDITION UNIX
+ DEFINES
+ UNICODE
+)