mirror of https://github.com/libAthena/athena.git
* Make install location customizable
This commit is contained in:
parent
30bda09849
commit
38d8430c93
10
Athena.pro
10
Athena.pro
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue