2016-04-02 03:39:45 +03:00
|
|
|
include(../common.pri)
|
2016-04-02 06:03:11 +03:00
|
|
|
QT += core gui
|
2016-04-02 03:39:45 +03:00
|
|
|
|
2016-04-03 16:33:41 +03:00
|
|
|
TARGET = LRDemo_r2
|
2016-04-02 03:39:45 +03:00
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
SOURCES += main.cpp\
|
|
|
|
mainwindow.cpp
|
|
|
|
|
|
|
|
HEADERS += mainwindow.h
|
|
|
|
|
|
|
|
FORMS += mainwindow.ui
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../include
|
|
|
|
DEPENDPATH += $$PWD/../include
|
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
demo_r2.qrc
|
|
|
|
|
|
|
|
EXTRA_DIR += $$PWD/demo_reports
|
2016-04-03 16:33:41 +03:00
|
|
|
DEST_DIR = $${DEST_BINS}
|
2016-04-02 06:03:11 +03:00
|
|
|
REPORTS_DIR = $${DEST_DIR}
|
|
|
|
|
|
|
|
macx{
|
|
|
|
CONFIG += app_bundle
|
|
|
|
}
|
2016-04-02 03:39:45 +03:00
|
|
|
|
|
|
|
unix:{
|
2016-04-03 16:33:41 +03:00
|
|
|
LIBS += -L$${DEST_LIBS} -llimereport
|
2016-04-02 03:39:45 +03:00
|
|
|
contains(CONFIG,zint){
|
2016-04-03 16:33:41 +03:00
|
|
|
LIBS += -L$${DEST_LIBS} -lQtZint
|
2016-04-02 03:39:45 +03:00
|
|
|
}
|
|
|
|
DESTDIR = $$DEST_DIR
|
2016-04-02 06:03:11 +03:00
|
|
|
# QMAKE_POST_LINK += mkdir -p $$quote($$REPORTS_DIR) |
|
|
|
|
QMAKE_POST_LINK += $$QMAKE_COPY_DIR $$quote($$EXTRA_DIR) $$quote($$REPORTS_DIR) $$escape_expand(\n\t)
|
2016-04-02 03:39:45 +03:00
|
|
|
linux{
|
|
|
|
#Link share lib to ../lib rpath
|
|
|
|
QMAKE_LFLAGS += -Wl,--rpath=\\\$\$ORIGIN
|
|
|
|
QMAKE_LFLAGS += -Wl,--rpath=\\\$\$ORIGIN/lib
|
|
|
|
QMAKE_LFLAGS += -Wl,--rpath=\\\$\$ORIGIN/../lib
|
|
|
|
QMAKE_LFLAGS_RPATH += #. .. ./libs
|
|
|
|
}
|
|
|
|
target.path = $${DEST_DIR}
|
|
|
|
INSTALLS = target
|
|
|
|
}
|
|
|
|
|
|
|
|
win32 {
|
|
|
|
EXTRA_DIR ~= s,/,\\,g
|
|
|
|
DEST_DIR ~= s,/,\\,g
|
|
|
|
REPORTS_DIR ~= s,/,\\,g
|
|
|
|
|
|
|
|
DESTDIR = $$DEST_DIR
|
|
|
|
RC_FILE += mainicon.rc
|
|
|
|
|
2016-04-02 06:03:11 +03:00
|
|
|
QMAKE_POST_LINK += $$QMAKE_COPY_DIR $$quote($$EXTRA_DIR\\*) $$quote($$REPORTS_DIR\\demo_reports) $$escape_expand(\\n\\t)
|
2016-04-02 03:39:45 +03:00
|
|
|
contains(CONFIG,zint){
|
2016-04-03 16:33:41 +03:00
|
|
|
LIBS += -L$${DEST_LIBS} -lQtZint
|
2016-04-02 03:39:45 +03:00
|
|
|
}
|
2016-04-03 16:33:41 +03:00
|
|
|
LIBS += -L$${DEST_LIBS} -llimereport
|
2016-04-02 03:39:45 +03:00
|
|
|
}
|
|
|
|
|