From 06db4130d93f7c4aafe5676cf9c967bd3c7436ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20T=C5=91k=C3=A9s?= Date: Thu, 30 Oct 2014 22:17:44 +0200 Subject: [PATCH] Add posibility to build as a shared library. --- SMTPEmail.pro | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/SMTPEmail.pro b/SMTPEmail.pro index 3b8c302..9c3453a 100644 --- a/SMTPEmail.pro +++ b/SMTPEmail.pro @@ -4,16 +4,19 @@ # #------------------------------------------------- -QT += core gui network +QT += core network TARGET = SMTPEmail -TEMPLATE = app -# uncomment this to build a shared library -#TEMPLATE = lib -#CONFIG += dll +# Build as an application +#TEMPLATE = app +# Build as a library +TEMPLATE = lib DEFINES += SMTP_BUILD +win32:CONFIG += dll + +QMAKE_CXXFLAGS += -fPIC SOURCES += \ src/emailaddress.cpp \ @@ -27,7 +30,8 @@ SOURCES += \ src/smtpclient.cpp \ src/quotedprintable.cpp \ src/mimemultipart.cpp \ - src/mimecontentformatter.cpp + src/mimecontentformatter.cpp \ + demos/demo1.cpp HEADERS += \ src/emailaddress.h \