#-------------------------------------------------
#
# Project created by QtCreator 2017-01-11T15:59:15
#
#-------------------------------------------------

TEMPLATE = lib
QT       += core gui network winextras
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++11

unix {
    target.path = /usr/lib
    INSTALLS += target
}

#Target name
VER = $$system($$PWD/../fmprc.bat $$TARGET)
ORIGIN_TARGET = $$TARGET
TARGET = $${TARGET}_$${VER}

#Header path
INCLUDEPATH += $$PWD/../include/ctk \
            += $$PWD/../include/interface \

#Library path
win32 {
LIBS += -luser32
}
LIBS += -L$$PWD/../lib

CONFIG(debug, debug|release) {
    #Linking library
        LIBS += -lCTKCored -lCTKPluginFrameworkd
    #Destination path
    DESTDIR = $$PWD/../debug/plugins
} else {
    LIBS += -lCTKCore -lCTKPluginFramework
    DESTDIR = $$PWD/../release/plugins
}

#
RESOURCES += \
    res/$${ORIGIN_TARGET}.qrc \
    res/fmp_redeem.qrc

win32 {
    RC_FILE += res/$${ORIGIN_TARGET}.rc
    system($$PWD/../fmprc.bat $$PWD/version.h $$ORIGIN_TARGET)
}
else {
    system($$PWD/../fmprc.sh $$PWD/version.h $$ORIGIN_TARGET)
}

HEADERS += \
    fmp_redeem_i.h \
    fmp_redeem.h \
    fmp_redeem_plugin_p.h \
    consumokdialog.h \
    consumptiondialog.h \
    couponkeypad.h \
    errcodedialog.h \
    scanningdialog.h \
    fmp_pe_handlers.h

SOURCES += \
    fmp_redeem.cpp \
    fmp_redeem_plugin.cpp \
    consumokdialog.cpp \
    consumptiondialog.cpp \
    couponkeypad.cpp \
    errcodedialog.cpp \
    scanningdialog.cpp \
    fmp_pe_handlers.cpp

FORMS += \
    consumokdialog.ui \
    consumptiondialog.ui \
    couponkeypad.ui \
    errcodedialog.ui \
    scanningdialog.ui