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
TARGET = nymea-remoteproxyclient
target.path = /usr/lib/
include(libnymea-remoteproxyclient.pri)
# install header file with relative subdirectory
for(header, HEADERS) {
path = /usr/include/nymea-remoteproxyclient/$${dirname(header)}
eval(headers_$${path}.files += $${header})
eval(headers_$${path}.path = $${path})
eval(INSTALLS *= headers_$${path})
}
installheaders.files = remoteproxyconnection.h
installheaders.path = /usr/include/nymea-remoteproxyclient/
target.path = /usr/lib/
INSTALLS += target
INSTALLS += target installheaders