#-------------------------------------------------
#
# Project created by QtCreator
#
#-------------------------------------------------

QT       += core gui xml opengl

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = simpleViewer
TEMPLATE = app

QMAKE_CXXFLAGS += -std=c++0x

SOURCES += QGLViewer/camera.cpp \
           QGLViewer/constraint.cpp \
           QGLViewer/frame.cpp \
           QGLViewer/keyFrameInterpolator.cpp \
           QGLViewer/manipulatedCameraFrame.cpp \
           QGLViewer/manipulatedFrame.cpp \
           QGLViewer/mouseGrabber.cpp \
           QGLViewer/qglviewer.cpp \
           QGLViewer/quaternion.cpp \
           QGLViewer/saveSnapshot.cpp \
           QGLViewer/vec.cpp \
           src/main.cpp \
           src/window/mainwindow.cpp \
           src/viewer/simpleViewer.cpp \
    src/glnodes/glnode.cpp \
    src/glnodes/shapes.cpp \
    src/glnodes/scenegroup.cpp

HEADERS  += QGLViewer/camera.h \
            QGLViewer/config.h \
            QGLViewer/constraint.h \
            QGLViewer/domUtils.h \
            QGLViewer/frame.h \
            QGLViewer/keyFrameInterpolator.h \
            QGLViewer/manipulatedCameraFrame.h \
            QGLViewer/manipulatedFrame.h \
            QGLViewer/mouseGrabber.h \
            QGLViewer/qglviewer.h \
            QGLViewer/quaternion.h \
            QGLViewer/vec.h \
            src/window/mainwindow.h \
            src/viewer/simpleViewer.h \
    src/glnodes/glnode.h \
    src/glnodes/shapes.h \
    src/interfaces/ivisitable.h \
    src/interfaces/visitor.h \
    src/glnodes/scenegroup.h

DISTFILES += src/shaders/basicShader.vert \
             src/shaders/basicShader.frag \
    src/data/skybox.jpg \
    src/shaders/objShader.frag \
    src/shaders/objShader.vert

FORMS += QGLViewer/ImageInterface.ui mainwindow.ui


CONFIG *= debug_and_release console qt opengl warn_on thread create_prl rtti

DEFINES *= QGLVIEWER_STATIC
win32 {
    DEFINES *= NOMINMAX
}

win32 {
  contains ( QT_MAJOR_VERSION, 5 ) {
    greaterThan( QT_MINOR_VERSION, 4) {
      LIBS *= -lopengl32
    }
  }
}
