2016-03-22 23:12:25 +03:00
|
|
|
include(../common.pri)
|
|
|
|
QT += core gui
|
|
|
|
|
2016-03-21 04:12:30 +03:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 4){
|
|
|
|
QT += widgets printsupport
|
|
|
|
DEFINES += HAVE_QT5
|
|
|
|
}
|
2016-03-24 17:10:44 +03:00
|
|
|
|
|
|
|
macx{
|
|
|
|
CONFIG += app_bundle
|
|
|
|
}
|
|
|
|
|
2016-03-21 04:12:30 +03:00
|
|
|
TARGET = LRDemo
|
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
SOURCES += main.cpp\
|
|
|
|
mainwindow.cpp
|
|
|
|
|
|
|
|
HEADERS += mainwindow.h
|
|
|
|
|
|
|
|
FORMS += mainwindow.ui
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../include
|
|
|
|
DEPENDPATH += $$PWD/../include
|
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
r1.qrc
|
|
|
|
|
|
|
|
EXTRA_DIR += $$PWD/demo_reports/*
|
2016-03-24 17:10:44 +03:00
|
|
|
DEST_DIR = $${BUILD_DIR}/demo/$${BUILD_TYPE}
|
|
|
|
REPORTS_DIR = $${DEST_DIR}/demo_reports/
|
2016-03-21 04:12:30 +03:00
|
|
|
|
|
|
|
CONFIG(release, debug|release){
|
|
|
|
message(Release)
|
|
|
|
BUILD_TYPE = release
|
|
|
|
}else{
|
|
|
|
message(Debug)
|
|
|
|
BUILD_TYPE = debug
|
|
|
|
}
|
|
|
|
|
2016-03-24 17:10:44 +03:00
|
|
|
unix{
|
2016-03-21 04:12:30 +03:00
|
|
|
MOC_DIR = $${OUT_PWD}/moc
|
2016-03-24 14:47:39 +03:00
|
|
|
UI_DIR = $${OUT_PWD}/ui
|
|
|
|
UI_HEADERS_DIR = $${OUT_PWD}/ui
|
|
|
|
UI_SOURCES_DIR = $${OUT_PWD}/ui
|
|
|
|
OBJECTS_DIR = $${OUT_PWD}/obj
|
|
|
|
RCC_DIR = $${OUT_PWD}/rcc
|
2016-03-21 04:12:30 +03:00
|
|
|
|
2016-03-24 17:10:44 +03:00
|
|
|
LIBS += -L$${BUILD_DIR}/lib/$${BUILD_TYPE} -llimereport
|
2016-03-22 23:12:25 +03:00
|
|
|
contains(CONFIG,zint){
|
2016-03-24 17:10:44 +03:00
|
|
|
LIBS += -L$${BUILD_DIR}/lib/$${BUILD_TYPE} -lQtZint
|
2016-03-22 23:12:25 +03:00
|
|
|
}
|
2016-03-21 04:12:30 +03:00
|
|
|
DESTDIR = $$DEST_DIR
|
2016-03-22 15:55:02 +03:00
|
|
|
QMAKE_POST_LINK += mkdir -p $$quote($$REPORTS_DIR) | $$QMAKE_COPY_DIR $$quote($$EXTRA_DIR) $$quote($$REPORTS_DIR) $$escape_expand(\n\t)
|
2016-03-21 04:12:30 +03:00
|
|
|
target.path = $${DEST_DIR}
|
|
|
|
}
|
|
|
|
|
|
|
|
win32 {
|
|
|
|
EXTRA_DIR ~= s,/,\\,g
|
2016-03-24 17:10:44 +03:00
|
|
|
DEST_DIR ~= s,/,\\,g
|
2016-03-22 15:55:02 +03:00
|
|
|
REPORTS_DIR ~= s,/,\\,g
|
|
|
|
|
2016-03-21 04:12:30 +03:00
|
|
|
MOC_DIR = $${OUT_PWD}/moc
|
|
|
|
UI_DIR = $${OUT_PWD}/ui
|
|
|
|
UI_HEADERS_DIR = $${OUT_PWD}/ui
|
|
|
|
UI_SOURCES_DIR = $${OUT_PWD}/ui
|
|
|
|
OBJECTS_DIR = $${OUT_PWD}/obj
|
|
|
|
RCC_DIR = $${OUT_PWD}/rcc
|
|
|
|
|
|
|
|
DESTDIR = $$DEST_DIR
|
|
|
|
RC_FILE += mainicon.rc
|
|
|
|
|
2016-03-22 15:55:02 +03:00
|
|
|
QMAKE_POST_LINK += $$QMAKE_COPY_DIR $$quote($$EXTRA_DIR) $$quote($$REPORTS_DIR) $$escape_expand(\\n\\t)
|
2016-03-24 17:10:44 +03:00
|
|
|
LIBS += -L$${BUILD_DIR}/lib/$${BUILD_TYPE} -llimereport
|
2016-03-21 04:12:30 +03:00
|
|
|
}
|
|
|
|
|
2016-03-22 15:55:02 +03:00
|
|
|
unix{
|
|
|
|
INSTALLS = target
|
|
|
|
}
|