only install relevant headers

This commit is contained in:
Michael Zanetti 2018-08-13 23:11:04 +02:00 committed by Simon Stürz
parent d28906faf0
commit 682e18e9df

View File

@ -2,16 +2,11 @@ include(../nymea-remoteproxy.pri)
TEMPLATE = lib TEMPLATE = lib
TARGET = nymea-remoteproxyclient TARGET = nymea-remoteproxyclient
target.path = /usr/lib/
include(libnymea-remoteproxyclient.pri) include(libnymea-remoteproxyclient.pri)
# install header file with relative subdirectory installheaders.files = remoteproxyconnection.h
for(header, HEADERS) { installheaders.path = /usr/include/nymea-remoteproxyclient/
path = /usr/include/nymea-remoteproxyclient/$${dirname(header)}
eval(headers_$${path}.files += $${header})
eval(headers_$${path}.path = $${path})
eval(INSTALLS *= headers_$${path})
}
target.path = /usr/lib/ INSTALLS += target installheaders
INSTALLS += target