-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeformation.pro
70 lines (58 loc) · 1.71 KB
/
deformation.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
TARGET=Deformation
OBJECTS_DIR=obj
# as I want to support 4.8 and 5 this will set a flag for some of the mac stuff
# mainly in the types.h file for the setMacVisual which is native in Qt5
isEqual(QT_MAJOR_VERSION, 5) {
cache()
DEFINES +=QT5BUILD
}
UI_HEADERS_DIR=ui
MOC_DIR=moc
CONFIG-=app_bundle
QT+=gui opengl core
SOURCES += \
src/main.cpp \
src/mainwindow.cpp \
src/OpenGLWidget.cpp \
src/selectable.cpp \
src/lmesolver.cpp \
src/importmesh.cpp
HEADERS += \
include/mainwindow.h \
include/Camera.h \
include/OpenGLWidget.h \
include/ui_mainwindow.h \
include/selectable.h \
include/lmesolver.h \
include/importmesh.h
INCLUDEPATH +=./include /opt/local/include $$(HOME)/NGL/include/
#inlude tetgen and open mesh!
INCLUDEPATH +=./tetgen1.5.0
LIBS += -L/opt/local/lib -lGLEW -L/usr/local/lib/OpenMesh -lOpenMeshCored -lOpenMeshToolsd -L./tetgen1.5.0/build -ltet
DESTDIR=./
CONFIG += console
CONFIG -= app_bundle
# use this to suppress some warning from boost
QMAKE_CXXFLAGS_WARN_ON += "-Wno-unused-parameter"
QMAKE_CXXFLAGS+= -msse -msse2 -msse3
macx:QMAKE_CXXFLAGS+= -arch x86_64
macx:INCLUDEPATH+=/usr/local/include/
# define the _DEBUG flag for the graphics lib
DEFINES +=NGL_DEBUG
unix:LIBS += -L/usr/local/lib
# add the ngl lib
unix:LIBS += -L/$(HOME)/NGL/lib -lNGL
# now if we are under unix and not on a Mac (i.e. linux) define GLEW
linux-*{
linux-*:QMAKE_CXXFLAGS += -march=native
linux-*:DEFINES+=GL42
DEFINES += LINUX
}
DEPENDPATH+=include
# if we are on a mac define DARWIN
macx:DEFINES += DARWIN
FORMS += \
ui/mainwindow.ui
OTHER_FILES += \
shaders/DeformationFrag.glsl \
shaders/DeformationVert.glsl