From 97193fb253f3892e64d537b89eaa788a054cb118 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Tue, 30 Jan 2018 14:17:31 +0100 Subject: Add QMake installation rules Signed-off-by: Szczepan Zalega --- libnitrokey.pro | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libnitrokey.pro') diff --git a/libnitrokey.pro b/libnitrokey.pro index 8d223f5..4c49e5f 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,12 @@ INCLUDEPATH = \ #DEFINES = +unix:!macx{ + # Install rules for QMake (CMake is preffered though) + headers.files = $$HEADERS + headers.path = /usr/local/include/libnitrokey/ + INSTALLS += headers + + libbin.path = /usr/local/lib + INSTALLS += libbin +} -- cgit v1.2.1 From 248b08c41ee851864263979d1164e7c8be897d63 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Tue, 30 Jan 2018 14:17:50 +0100 Subject: Add udev rules installation (QMake) Signed-off-by: Szczepan Zalega --- libnitrokey.pro | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libnitrokey.pro') 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 -- cgit v1.2.1