diff options
author | Yoann Lopes <yoann.lopes@nokia.com> | 2010-07-13 22:34:54 +0200 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@nokia.com> | 2010-07-13 22:34:54 +0200 |
commit | c761ffbbc1abd8ed1ba5dc862bdfe1eaf6b63104 (patch) | |
tree | 818920abf4f57dbd5ac713bda388d6dfb4f7be6a |
Initial commit.
-rw-r--r-- | .gitignore | 8 | ||||
-rw-r--r-- | main.cpp | 8 | ||||
-rw-r--r-- | qmlogre.pro | 25 |
3 files changed, 41 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0f3bf6d --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +*.user +.obj/ +.moc/ +.ui/ +Makefile +*~ +*.app +.directory diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..fc7cf9d --- /dev/null +++ b/main.cpp @@ -0,0 +1,8 @@ +#include <QtGui/QApplication> + +int main(int argc, char **argv) +{ + QApplication app(argc, argv); + + return app.exec(); +} diff --git a/qmlogre.pro b/qmlogre.pro new file mode 100644 index 0000000..5b592d1 --- /dev/null +++ b/qmlogre.pro @@ -0,0 +1,25 @@ +CONFIG += qt +QT += opengl +TEMPLATE = app +TARGET = qmlogre + +OGREDIR = $$(OGRE_HOME) +isEmpty(OGREDIR) { + error(QmlOgre needs Ogre to be built. Please set the environment variable OGRE_HOME pointing to your Ogre root directory.) +} else { + message(Using Ogre libraries in $$OGREDIR) + INCLUDEPATH += $$OGREDIR/include + macx { + QMAKE_LFLAGS += -F$$OGREDIR/lib/release + LIBS += -framework Ogre + } else { + LIBS += -L$$OGREDIR/lib -lOgre + } +} + +UI_DIR = ./.ui +OBJECTS_DIR = ./.obj +MOC_DIR = ./.moc + + +SOURCES += main.cpp |