summaryrefslogtreecommitdiffstats
path: root/qtserialbus.pro
diff options
context:
space:
mode:
authorJanne Partala <janne.partala@bitfactor.fi>2015-08-19 10:40:50 +0300
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-08-19 14:52:22 +0000
commit27f2ed77245df70811419ce68fde8ceb218f183b (patch)
treeea2bb0a7c2539381b790ce85d9290d7102d65b97 /qtserialbus.pro
parent218422886b61a6127b191768440205eb910db975 (diff)
Check availability of libmodbus
Change-Id: I8836018eb284fa5470033f42560df2718c636a92 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'qtserialbus.pro')
-rw-r--r--qtserialbus.pro3
1 files changed, 3 insertions, 0 deletions
diff --git a/qtserialbus.pro b/qtserialbus.pro
index 5b918c3..a5e7501 100644
--- a/qtserialbus.pro
+++ b/qtserialbus.pro
@@ -7,8 +7,11 @@ lessThan(QT_MAJOR_VERSION, 5) {
load(configure)
qtCompileTest(socketcan)
qtCompileTest(socketcan_fd)
+qtCompileTest(libmodbus)
load(qt_parts)
+!config_libmodbus:warning("Cannot build libmodbus plugin. No libmodbus found")
+
linux {
!config_socketcan:warning("You need linux/can.h and linux/can/raw.h linux headers for socketCAN support, disabling it")
!config_socketcan_fd:warning("Newer kernel needed for flexible data-rate frame support 'canfd_frame'")