diff --git a/Athena.pro b/Athena.pro index a962781..7e8b17d 100644 --- a/Athena.pro +++ b/Athena.pro @@ -146,11 +146,15 @@ HEADERS += \ OTHER_FILES += \ .travis.yml +isEmpty(PREFIX) { + PREFIX = /usr/local +} + unix { - target.path = /usr/lib + target.path = $$PREFIX/lib headerFiles.files = $$PWD/include/* - headerFiles.path = /usr/include/Athena + headerFiles.path = $$PREFIX/include/Athena pkgconf.files = libAthena.pc - pkgconf.path = /usr/lib/pkgconfig + pkgconf.path = $$PREFIX/lib/pkgconfig INSTALLS += target headerFiles pkgconf } diff --git a/libAthena.pc b/libAthena.pc index 184dc0c..7e5b350 100644 --- a/libAthena.pc +++ b/libAthena.pc @@ -5,6 +5,6 @@ libdir=${prefix}/lib Name: libAthena Description: Basic cross platform IO library Version: 1.0.0 -Cflags: -I${includedir}/Athena +Cflags: -I${includedir}/Athena -std=c++11 Libs: -L${libdir} -lAthena Requires: zlib