added qt project for testing the library
This commit is contained in:
parent
fa67b56371
commit
c432044eb9
4 changed files with 69 additions and 0 deletions
16
test/main.cpp
Normal file
16
test/main.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include <QApplication>
|
||||
|
||||
#include "viewer.h"
|
||||
#include "camera.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
|
||||
Viewer w;
|
||||
Camera c;
|
||||
|
||||
w.show();
|
||||
|
||||
return a.exec();
|
||||
}
|
27
test/test.pro
Normal file
27
test/test.pro
Normal file
|
@ -0,0 +1,27 @@
|
|||
#-------------------------------------------------
|
||||
#
|
||||
# Project created by QtCreator 2014-12-23T01:32:36
|
||||
#
|
||||
#-------------------------------------------------
|
||||
|
||||
QT += core gui network xml
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
|
||||
TARGET = omd
|
||||
TEMPLATE = app
|
||||
|
||||
|
||||
SOURCES += main.cpp\
|
||||
viewer.cpp
|
||||
|
||||
HEADERS += viewer.h
|
||||
|
||||
win32: CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../libqt-omd/release/ -llibqt-omd
|
||||
else:win32: CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../libqt-omd/debug/ -llibqt-omd
|
||||
else:unix: LIBS += -L$$OUT_PWD/../libqt-omd/ -llibqt-omd
|
||||
|
||||
INCLUDEPATH += $$PWD/../libqt-omd
|
||||
DEPENDPATH += $$PWD/../libqt-omd
|
||||
|
||||
CONFIG += c++11
|
11
test/viewer.cpp
Normal file
11
test/viewer.cpp
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include "viewer.h"
|
||||
|
||||
Viewer::Viewer(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
{
|
||||
}
|
||||
|
||||
Viewer::~Viewer()
|
||||
{
|
||||
|
||||
}
|
15
test/viewer.h
Normal file
15
test/viewer.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#ifndef VIEWER_H
|
||||
#define VIEWER_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class Viewer : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Viewer(QWidget *parent = 0);
|
||||
~Viewer();
|
||||
};
|
||||
|
||||
#endif // VIEWER_H
|
Loading…
Add table
Reference in a new issue