2015-07-30 13:13:19 +02:00
|
|
|
# Base options
|
|
|
|
TEMPLATE = app
|
|
|
|
LANGUAGE = C++
|
|
|
|
|
|
|
|
# QT modules
|
|
|
|
QT += opengl
|
|
|
|
|
|
|
|
# Executable name
|
|
|
|
TARGET = trimesh_qt
|
|
|
|
|
|
|
|
# Directories
|
|
|
|
DESTDIR = .
|
|
|
|
UI_DIR = build/ui
|
|
|
|
MOC_DIR = build/moc
|
|
|
|
OBJECTS_DIR = build/obj
|
|
|
|
|
|
|
|
# Lib headers
|
|
|
|
INCLUDEPATH += .
|
|
|
|
INCLUDEPATH += ../../..
|
|
|
|
|
|
|
|
# Lib sources
|
|
|
|
SOURCES += ../../../wrap/ply/plylib.cpp
|
|
|
|
SOURCES += ../../../wrap/gui/trackball.cpp
|
|
|
|
SOURCES += ../../../wrap/gui/trackmode.cpp
|
|
|
|
|
|
|
|
|
|
|
|
# Compile glew
|
|
|
|
DEFINES += GLEW_STATIC
|
|
|
|
INCLUDEPATH += ../../../../lib/glew/include
|
|
|
|
SOURCES += ../../../../lib/glew/src/glew.c
|
|
|
|
|
|
|
|
# Awful problem with windows..
|
|
|
|
win32{
|
|
|
|
DEFINES += NOMINMAX
|
|
|
|
}
|
|
|
|
|
|
|
|
# Input
|
|
|
|
HEADERS += mainwindow.h
|
|
|
|
HEADERS += glarea.h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SOURCES += main.cpp
|
|
|
|
SOURCES += mainwindow.cpp
|
|
|
|
SOURCES += glarea.cpp
|
|
|
|
|
|
|
|
FORMS += mainwindow.ui
|
|
|
|
|
|
|
|
linux-g++:LIBS += -lGLU
|
|
|
|
linux-g++-32:LIBS += -lGLU
|
|
|
|
linux-g++-64:LIBS += -lGLU
|