summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals.cid@kdab.com>2019-02-11 15:47:04 +0100
committerAlbert Astals Cid <albert.astals.cid@kdab.com>2019-02-11 17:16:17 +0000
commitf18db41f8586e60460649b4032cc8b6c01700441 (patch)
treef4fab3d90a502407dc7847d4298e44aff4b13ca0 /src/plugins
parent93564b3f8be7506dbd9941ebc4fbdbf575f4beb4 (diff)
cmake: Find tslib and build the tslib plugin if found
Change-Id: I7119ddf473a3ede29bbfef23cffb08a4fcbd5681 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/generic/CMakeLists.txt2
-rw-r--r--src/plugins/generic/tslib/CMakeLists.txt19
2 files changed, 20 insertions, 1 deletions
diff --git a/src/plugins/generic/CMakeLists.txt b/src/plugins/generic/CMakeLists.txt
index 616e940693..8fa648006a 100644
--- a/src/plugins/generic/CMakeLists.txt
+++ b/src/plugins/generic/CMakeLists.txt
@@ -10,7 +10,7 @@ if(QT_FEATURE_evdev)
endif()
if(QT_FEATURE_tslib)
-# TODO add_subdirectory(tslib)
+ add_subdirectory(tslib)
endif()
if(QT_FEATURE_tuiotouch)
diff --git a/src/plugins/generic/tslib/CMakeLists.txt b/src/plugins/generic/tslib/CMakeLists.txt
new file mode 100644
index 0000000000..33ee2a9564
--- /dev/null
+++ b/src/plugins/generic/tslib/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from tslib.pro.
+
+#####################################################################
+## qtslibplugin Plugin:
+#####################################################################
+
+add_qt_plugin(qtslibplugin
+ TYPE generic
+ SOURCES
+ main.cpp
+ LIBRARIES
+ Qt::CorePrivate
+ Qt::GuiPrivate
+ Qt::InputSupportPrivate
+ # OTHER_FILES = "tslib.json"
+ # PLUGIN_CLASS_NAME = "QTsLibPlugin"
+ # PLUGIN_EXTENDS = "-"
+ # _LOADED = "qt_plugin"
+)