0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-01-25 23:51:03 +03:00
LimeReport/demo/r1/r1.pro
2016-03-20 22:26:04 +01:00

68 lines
1.7 KiB
Prolog

QT += core gui script sql
greaterThan(QT_MAJOR_VERSION, 4){
QT += widgets printsupport
DEFINES += HAVE_QT5
}
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/*
CONFIG(release, debug|release){
message(Release)
BUILD_TYPE = release
}else{
message(Debug)
BUILD_TYPE = debug
}
CONFIG -= app_bundle
unix{
UNIX_DIR = $$OUT_PWD/../build/unix
DEST_DIR = $${UNIX_DIR}/$${BUILD_TYPE}/demo_reports
MOC_DIR = $${DEST_DIR}/moc
UI_DIR = $${DEST_DIR}/ui
UI_HEADERS_DIR = $${DEST_DIR}/ui
UI_SOURCES_DIR = $${DEST_DIR}/ui
OBJECTS_DIR = $${DEST_DIR}/obj
RCC_DIR = $${DEST_DIR}/rcc
LIBS += -L$$PWD/../../lib/$${BUILD_TYPE} -llimereport
DESTDIR = $$DEST_DIR/bin
QMAKE_POST_LINK += mkdir -p $$quote($$DESTDIR) | $$QMAKE_COPY_DIR $$quote($$EXTRA_DIR) $$quote($$DESTDIR) $$escape_expand(\n\t)
}
win32 {
WIN32_DIR = $$OUT_PWD/../build/win32
EXTRA_DIR ~= s,/,\\,g
DEST_DIR = $${WIN32_DIR}/$${BUILD_TYPE}/demo_reports/
DEST_DIR ~= s,/,\\,g
MOC_DIR = $${DEST_DIR}/moc
UI_DIR = $${DEST_DIR}/ui
UI_HEADERS_DIR = $${DEST_DIR}/ui
UI_SOURCES_DIR = $${DEST_DIR}/ui
OBJECTS_DIR = $${DEST_DIR}/obj
RCC_DIR = $${DEST_DIR}/rcc
DESTDIR = $$DEST_DIR/bin
RC_FILE += mainicon.rc
QMAKE_POST_LINK += $$QMAKE_COPY_DIR $$quote($$EXTRA_DIR) $$quote($$DESTDIR) $$escape_expand(\\n\\t)
LIBS += -L$$PWD/../../lib/$${BUILD_TYPE} -llimereport
}