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

QT       += widgets

TEMPLATE = lib

DEFINES += QUAZIP_STATIC

SOURCES += \
    fmp_syncer.cpp \
    fmp_syncer_p.cpp \
    fmp_syncer_plugin.cpp

HEADERS += \
    fmp_syncer.h \
    fmp_syncer_i.h \
    fmp_syncer_p.h \
    fmp_syncer_plugin_p.h \
    fmp_syncer_def.h


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 \
            += $$PWD/../include/zlib \
            += $$PWD/../include/quazip

#Library path
LIBS += -L$$PWD/../lib

CONFIG(debug, debug|release) {
    #Linking library
    LIBS += -lCTKCored -lCTKPluginFrameworkd -lquazipd -lzlibstaticd
    #Destination path
    DESTDIR = $$PWD/../debug/plugins
} else {
    LIBS += -lCTKCore -lCTKPluginFramework -lquazip -lzlibstatic
    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)
}

DISTFILES += \
    quazip/quazip.pri
