aboutsummaryrefslogtreecommitdiff
path: root/libnitrokey.pro
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-01-30 14:17:50 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2018-01-30 14:33:54 +0100
commit248b08c41ee851864263979d1164e7c8be897d63 (patch)
tree8e241d9ce51ae017c4976e41f7301fb8568983a1 /libnitrokey.pro
parent97193fb253f3892e64d537b89eaa788a054cb118 (diff)
downloadlibnitrokey-248b08c41ee851864263979d1164e7c8be897d63.tar.gz
libnitrokey-248b08c41ee851864263979d1164e7c8be897d63.tar.bz2
Add udev rules installation (QMake)
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'libnitrokey.pro')
-rw-r--r--libnitrokey.pro10
1 files changed, 10 insertions, 0 deletions
diff --git a/libnitrokey.pro b/libnitrokey.pro
index 4c49e5f..3c79a78 100644
--- a/libnitrokey.pro
+++ b/libnitrokey.pro
@@ -81,6 +81,16 @@ INCLUDEPATH = \
unix:!macx{
# Install rules for QMake (CMake is preffered though)
+ udevrules.path = $$system(pkg-config --variable=udevdir udev)
+ isEmpty(udevrules.path){
+ udevrules.path = "/lib/udev/"
+ message("Could not detect path for udev rules - setting default: " $$udevrules.path)
+ }
+ udevrules.path = $$udevrules.path"/rules.d"
+ udevrules.files = $$PWD/"data/41-nitrokey.rules"
+ message ($$udevrules.files)
+ INSTALLS +=udevrules
+
headers.files = $$HEADERS
headers.path = /usr/local/include/libnitrokey/
INSTALLS += headers