From 38d8430c931eee5e8a070d5b18a3d86ef4d7ea5d Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Sun, 28 Sep 2014 20:51:21 -0700 Subject: [PATCH] * Make install location customizable --- Athena.pro | 10 +++++++--- libAthena.pc | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) 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