38 lines
865 B
Prolog
38 lines
865 B
Prolog
QT -= gui
|
|
|
|
TEMPLATE = lib
|
|
CONFIG += staticlib
|
|
|
|
DEFINES += DLLBUILD
|
|
|
|
CONFIG += c++17
|
|
|
|
# You can make your code fail to compile if it uses deprecated APIs.
|
|
# In order to do so, uncomment the following line.
|
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
|
|
|
INCLUDEPATH += ./modbus/Inc
|
|
|
|
HEADERS += \
|
|
modbus/Inc/config.h \
|
|
modbus/Inc/config_win.h \
|
|
modbus/Inc/modbus-private.h \
|
|
modbus/Inc/modbus-rtu-private.h \
|
|
modbus/Inc/modbus-rtu.h \
|
|
modbus/Inc/modbus-tcp-private.h \
|
|
modbus/Inc/modbus-tcp.h \
|
|
modbus/Inc/modbus.h
|
|
|
|
SOURCES += \
|
|
modbus/Src/modbus-data.c \
|
|
modbus/Src/modbus-rtu.c \
|
|
modbus/Src/modbus-tcp.c \
|
|
modbus/Src/modbus.c
|
|
|
|
|
|
# Default rules for deployment.
|
|
unix {
|
|
target.path = $$[QT_INSTALL_PLUGINS]/generic
|
|
}
|
|
!isEmpty(target.path): INSTALLS += target
|