-
Notifications
You must be signed in to change notification settings - Fork 1
/
common.pri
84 lines (53 loc) · 1.6 KB
/
common.pri
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
71
72
73
74
75
76
77
78
79
80
81
82
VCGPATH = $$PWD/vcglib
CONFIG += console
CONFIG += c++11
CONFIG -= app_bundle
#### QT STUFF ##################################################################
TEMPLATE = app
QT = core gui svg
##### INCLUDE PATH #############################################################
INCLUDEPATH += $$PWD/imgui $$PWD/src $$PWD/triangle $$VCGPATH $$VCGPATH/eigenlib
#### LIBS ######################################################################
unix {
CONFIG += link_pkgconfig
PKGCONFIG += glfw3 glew
LIBS += -lGL -lGLEW
!exists($$PWD/triangle/triangle.o) {
error("Object file for triangle not found")
}
LIBS += $$PWD/triangle/triangle.o
}
win32 {
WIN_GLFW_PATH = $$PWD/glfw # set to glfw dir
WIN_GLEW_PATH = $$PWD/glew # set to glew dir
DEFINES += GLFW_DLL
INCLUDEPATH += $$WIN_GLFW_PATH/include
LIBS += -L$$WIN_GLFW_PATH/lib-vc2015 -lglfw3dll
INCLUDEPATH += $$WIN_GLEW_PATH/include
LIBS += -L$$WIN_GLEW_PATH/lib/Release/x64 -lglew32
LIBS += -lopengl32
CONFIG(debug, debug|release) {
!exists($$PWD/triangle/triangled.obj) {
error("Object file for triangle not found")
}
LIBS += $$PWD/triangle/triangled.obj
}
CONFIG(release, debug|release) {
!exists($$PWD/triangle/triangle.obj) {
error("Object file for triangle not found")
}
LIBS += $$PWD/triangle/triangle.obj
}
}
#### PLATFORM SPECIFIC FLAGS ###################################################
unix {
QMAKE_CXXFLAGS += -g
}
win32 {
DEFINES += NOMINMAX
}
HEADERS += \
$$PWD/src/utils.h
SOURCES += \
$$VCGPATH/wrap/openfbx/src/ofbx.cpp \
$$VCGPATH/wrap/openfbx/src/miniz.c