#-------------------------------------------------
#
# Project created by QtCreator 2017-03-07T10:55:28
#
#-------------------------------------------------

QT       += core gui network

TARGET = fmp_network
TEMPLATE = lib

DESTDIR = $$[QT_INSTALL_PLUGINS]/generic

SOURCES += fmp_network_plugin.cpp \
    fmp_network.cpp \
    fmp_nw_reply.cpp

HEADERS += fmp_network_plugin_p.h \
    fmp_network.h \
    fmp_network_i.h \
    fmp_nw_reply.h \
    fmp_nw_request.h


#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
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

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)
}

