|
|
Source code |
1 2 3 4 5 6 7 |
#include <QtCore/qglobal.h> #if defined(OPENMODEM_LIBRARY) # define OPENMODEMSHARED_EXPORT Q_DECL_EXPORT #else # define OPENMODEMSHARED_EXPORT Q_DECL_IMPORT #endif |
|
|
Source code |
1 2 3 4 5 6 7 8 9 |
#include "openModem_global.h"
////// EXPORTED CLASS DEFINITION //////
class OPENMODEMSHARED_EXPORT openModem : public QObject
{
Q_OBJECT
public:
openModem(QObject *parent=0);
~openModem();
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
TEMPLATE = lib DEFINES += OPENMODEM_LIBRARY QT -= gui CONFIG = qt thread warn_on debug win32:CONFIG += dll windows unix:CONFIG += shared x11 TARGET = openModem MOC_DIR = moc OBJECTS_DIR = obj SOURCES += . . . win32:SOURCES += . . . HEADERS += . . . win32:HEADERS += . . . win32:LIBS += -lwinmm |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
TEMPLATE = app TARGET = MultiQ QT += DEPENDPATH = . INCLUDEPATH = . CONFIG = qt exceptions thread warn_on debug win32:CONFIG += windows unix:CONFIG += unix x11 MOC_DIR = moc OBJECTS_DIR = obj DESTDIR = debug SOURCES += . . . HEADERS += . . . win32:LIBS += -L../openModem/openModem.dll unix:LIBS += -llibopenModem.a RESOURCES += application.qrc |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
TEMPLATE = lib
TARGET = openmodem
DEFINES += OPENMODEM_LIBRARY
QT -= gui
MOC_DIR = moc
OBJECTS_DIR = obj
SOURCES += ...
HEADERS += ...
win32: {
SOURCES += ...
HEADERS += ...
}
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
TEMPLATE = app TARGET = multiq DESTDIR = debug MOC_DIR = moc OBJECTS_DIR = obj DEPENDPATH = . INCLUDEPATH = . SOURCES += ... HEADERS += ... RESOURCES += application.qrc LIBS += -L../openmodem -lopenmodem |