summaryrefslogtreecommitdiffstats
path: root/config.tests
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2015-09-08 09:48:36 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-09-11 13:39:21 +0000
commitda51c230cef893396732b04e4ad7e10ef7ac334f (patch)
treec93e57da2a00088534e29c843763da204c58c888 /config.tests
parentba3be51b6a7b1fc1fbb0e99b5d4417a3ef0a537c (diff)
Ensure that platform's libmodbus is used when available
Change-Id: I800a490f858729c7aa678429bea7b8109e2c68c0 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'config.tests')
-rw-r--r--config.tests/libmodbus_systemlib/libmodbus_systemlib.pro6
-rw-r--r--config.tests/libmodbus_systemlib/main.cpp40
2 files changed, 46 insertions, 0 deletions
diff --git a/config.tests/libmodbus_systemlib/libmodbus_systemlib.pro b/config.tests/libmodbus_systemlib/libmodbus_systemlib.pro
new file mode 100644
index 0000000..9af89b9
--- /dev/null
+++ b/config.tests/libmodbus_systemlib/libmodbus_systemlib.pro
@@ -0,0 +1,6 @@
+TEMPLATE = app
+
+CONFIG += link_pkgconfig
+PKGCONFIG += libmodbus
+
+SOURCES += main.cpp
diff --git a/config.tests/libmodbus_systemlib/main.cpp b/config.tests/libmodbus_systemlib/main.cpp
new file mode 100644
index 0000000..2677a19
--- /dev/null
+++ b/config.tests/libmodbus_systemlib/main.cpp
@@ -0,0 +1,40 @@
+/****************************************************************************
+**
+** Copyright (C) 2015 The Qt Company Ltd.
+** Contact: http://www.qt.io/licensing/
+**
+** This file is part of the QtSerialBus module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL3$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see http://www.qt.io/terms-conditions. For further
+** information use the contact form at http://www.qt.io/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 3 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPLv3 included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 3 requirements
+** will be met: https://www.gnu.org/licenses/lgpl.html.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 2.0 or later as published by the Free
+** Software Foundation and appearing in the file LICENSE.GPL included in
+** the packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 2.0 requirements will be
+** met: http://www.gnu.org/licenses/gpl-2.0.html.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+int main()
+{
+ return 0;
+}