* Make install location customizable

This commit is contained in:
Phillip Stephens 2014-09-28 20:51:21 -07:00
parent 30bda09849
commit 38d8430c93
2 changed files with 8 additions and 4 deletions

View File

@ -146,11 +146,15 @@ HEADERS += \
OTHER_FILES += \ OTHER_FILES += \
.travis.yml .travis.yml
isEmpty(PREFIX) {
PREFIX = /usr/local
}
unix { unix {
target.path = /usr/lib target.path = $$PREFIX/lib
headerFiles.files = $$PWD/include/* headerFiles.files = $$PWD/include/*
headerFiles.path = /usr/include/Athena headerFiles.path = $$PREFIX/include/Athena
pkgconf.files = libAthena.pc pkgconf.files = libAthena.pc
pkgconf.path = /usr/lib/pkgconfig pkgconf.path = $$PREFIX/lib/pkgconfig
INSTALLS += target headerFiles pkgconf INSTALLS += target headerFiles pkgconf
} }

View File

@ -5,6 +5,6 @@ libdir=${prefix}/lib
Name: libAthena Name: libAthena
Description: Basic cross platform IO library Description: Basic cross platform IO library
Version: 1.0.0 Version: 1.0.0
Cflags: -I${includedir}/Athena Cflags: -I${includedir}/Athena -std=c++11
Libs: -L${libdir} -lAthena Libs: -L${libdir} -lAthena
Requires: zlib Requires: zlib