Add posibility to build as a shared library.
This commit is contained in:
parent
235a350a34
commit
06db4130d9
@ -4,16 +4,19 @@
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------
|
#-------------------------------------------------
|
||||||
|
|
||||||
QT += core gui network
|
QT += core network
|
||||||
|
|
||||||
TARGET = SMTPEmail
|
TARGET = SMTPEmail
|
||||||
|
|
||||||
TEMPLATE = app
|
# Build as an application
|
||||||
# uncomment this to build a shared library
|
#TEMPLATE = app
|
||||||
#TEMPLATE = lib
|
|
||||||
#CONFIG += dll
|
|
||||||
|
|
||||||
|
# Build as a library
|
||||||
|
TEMPLATE = lib
|
||||||
DEFINES += SMTP_BUILD
|
DEFINES += SMTP_BUILD
|
||||||
|
win32:CONFIG += dll
|
||||||
|
|
||||||
|
QMAKE_CXXFLAGS += -fPIC
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
src/emailaddress.cpp \
|
src/emailaddress.cpp \
|
||||||
@ -27,7 +30,8 @@ SOURCES += \
|
|||||||
src/smtpclient.cpp \
|
src/smtpclient.cpp \
|
||||||
src/quotedprintable.cpp \
|
src/quotedprintable.cpp \
|
||||||
src/mimemultipart.cpp \
|
src/mimemultipart.cpp \
|
||||||
src/mimecontentformatter.cpp
|
src/mimecontentformatter.cpp \
|
||||||
|
demos/demo1.cpp
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
src/emailaddress.h \
|
src/emailaddress.h \
|
||||||
|
Loading…
Reference in New Issue
Block a user