aboutsummaryrefslogtreecommitdiff
path: root/libnitrokey.pro
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-01-31 12:55:54 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2018-01-31 12:55:54 +0100
commit3e37da97c7b2417251585c1d985b54c9a71561e7 (patch)
tree8e241d9ce51ae017c4976e41f7301fb8568983a1 /libnitrokey.pro
parent25e458ea8fdd4d704ce29709852b122cbcad5f06 (diff)
parent248b08c41ee851864263979d1164e7c8be897d63 (diff)
downloadlibnitrokey-3e37da97c7b2417251585c1d985b54c9a71561e7.tar.gz
libnitrokey-3e37da97c7b2417251585c1d985b54c9a71561e7.tar.bz2
Merge branch 'add_udev'
Diffstat (limited to 'libnitrokey.pro')
-rw-r--r--libnitrokey.pro21
1 files changed, 21 insertions, 0 deletions
diff --git a/libnitrokey.pro b/libnitrokey.pro
index 8d223f5..3c79a78 100644
--- a/libnitrokey.pro
+++ b/libnitrokey.pro
@@ -3,6 +3,7 @@
CONFIG += c++14 shared debug
+
TEMPLATE = lib
TARGET = nitrokey
@@ -32,6 +33,7 @@ HEADERS = \
$$PWD/include/stick20_commands.h \
$$PWD/NK_C_API.h
+
SOURCES = \
$$PWD/command_id.cc \
$$PWD/device.cc \
@@ -77,3 +79,22 @@ INCLUDEPATH = \
#DEFINES =
+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
+
+ libbin.path = /usr/local/lib
+ INSTALLS += libbin
+}