added version, checking for TARGET_PREFIX variable

This commit is contained in:
Martchus 2015-06-24 00:59:58 +02:00
parent d39fd6a598
commit b3d76635b1
2 changed files with 12 additions and 1 deletions

View File

@ -12,7 +12,17 @@ unix {
QMAKE_LFLAGS += "-Wl,--rpath=./"
}
# prefix
targetprefix = .
targetprefix = $$(TARGET_PREFIX)
equals(targetprefix, "") {
win32 {
targetprefix = ../../..
} else {
targetprefix = ../..
}
}
message("Using target prefix \"$${targetprefix}\".")
# print install root
message("Using install root \"$$(INSTALL_ROOT)\".")
# target
CONFIG(debug, debug|release) {
TARGET = $$targetprefix/$${projectname}d

View File

@ -1,4 +1,5 @@
projectname = passwordfile
VERSION = 2.0.5
# include ../../common.pri when building as part of a subdirs project; otherwise include general.pri
!include(../../common.pri) {