Modify install prefix

This commit is contained in:
KangLin 2016-05-11 14:05:02 +08:00
parent 995c01a5c8
commit f9604ec163
1 changed files with 21 additions and 6 deletions

View File

@ -258,15 +258,30 @@ symbian {
Location Location
} }
unix:!symbian { !symbian {
maemo5 { isEmpty(PREFIX) {
target.path = /opt/usr/lib maemo5 {
} else { target.path = /opt/usr/lib
target.path = /usr/lib } else {
target.path = /usr/lib
}
} }
DEFINES += NOFMAXL DEFINES += NOFMAXL
INSTALLS += target
# Installation
headers.files = qzxing.h QZXing_global.h
headers.path = $$PREFIX/include
target.path = $$PREFIX/lib
INSTALLS += headers target
# pkg-config support
CONFIG += create_pc create_prl no_install_prl
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
QMAKE_PKGCONFIG_LIBDIR = ${prefix}/lib
QMAKE_PKGCONFIG_INCDIR = ${prefix}/include
unix:QMAKE_CLEAN += -r pkgconfig lib$${TARGET}.prl
} }
win32-msvc*{ win32-msvc*{