If compiling in debug mode append a "d" to the Target and also link to that files

This commit is contained in:
Spiek
2017-07-18 18:09:28 +02:00
parent 4e1a680e09
commit 6b0195cb89
5 changed files with 52 additions and 9 deletions

View File

@@ -1,7 +1,12 @@
include(../common.pri)
QT += core gui
TARGET = LRDemo_r1
contains(CONFIG,release) {
TARGET = LRDemo_r1
} else {
TARGET = LRDemo_r1d
}
TEMPLATE = app
SOURCES += main.cpp\
@@ -60,7 +65,12 @@ win32 {
LIBS += -L$${DEST_LIBS} -lQtZint
}
}
LIBS += -L$${DEST_LIBS} -llimereport
LIBS += -L$${DEST_LIBS}
contains(CONFIG,release) {
LIBS += -llimereport
} else {
LIBS += -llimereportd
}
}