-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopengl-learning.pro
More file actions
82 lines (77 loc) · 2.3 KB
/
Copy pathopengl-learning.pro
File metadata and controls
82 lines (77 loc) · 2.3 KB
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
TEMPLATE = app
TARGET = opengl-learning
QT += widgets opengl openglwidgets
CONFIG += c++17
# Assimp
macx {
INCLUDEPATH += /opt/homebrew/include
LIBS += -L/opt/homebrew/lib -lassimp
} else {
INCLUDEPATH += /usr/local/include
LIBS += -L/usr/local/lib -lassimp
}
SOURCES += \
src/main.cpp \
src/glbase.cpp \
src/glcamera.cpp \
src/glcamerabase.cpp \
src/gltriangle.cpp \
src/gltexture.cpp \
src/gltransform.cpp \
src/glcamerax.cpp \
src/glcoordinate.cpp \
src/glcolor.cpp \
src/glbasiclighting.cpp \
src/glmaterials.cpp \
src/gllightingmaps.cpp \
src/gllightcasters.cpp \
src/glmultiplelights.cpp \
src/panel.cpp \
src/actionbutton.cpp \
src/camera.cpp \
src/glpbrlighting.cpp \
src/glmodelloading.cpp \
src/gldepthtesting.cpp \
src/glstenciltesting.cpp \
src/glblending.cpp \
src/glfaceculling.cpp \
src/glframebuffers.cpp \
HEADERS += \
src/header/glbase.h \
src/header/glcamera.h \
src/header/glcamerabase.h \
src/header/gltriangle.h \
src/header/gltexture.h \
src/header/gltransform.h \
src/header/glcamerax.h \
src/header/glcoordinate.h \
src/header/glcolor.h \
src/header/glbasiclighting.h \
src/header/glmaterials.h \
src/header/gllightingmaps.h \
src/header/gllightcasters.h \
src/header/glmultiplelights.h \
src/header/panel.h \
src/header/actionbutton.h \
src/header/camera.h \
src/header/glpbrlighting.h \
src/header/glmodelloading.h \
src/header/gldepthtesting.h \
src/header/glstenciltesting.h \
src/header/glblending.h \
src/header/glfaceculling.h \
src/header/glframebuffers.h \
src/header/materialproperties.h \
src/header/model.h
# 自动把资源复制到 exe 旁边(每次 make 都会执行,不只限于重新链接)
macx {
RES_DEST = $$OUT_PWD/opengl-learning.app/Contents/MacOS
} else {
RES_DEST = $$OUT_PWD
}
# 把 shadow build 目录的 .pro 文件也纳入拷贝触发条件
copy_res.commands += mkdir -p \"$$RES_DEST\" && $$QMAKE_COPY_DIR \"$$PWD/shaders\" \"$$RES_DEST/\" && $$QMAKE_COPY_DIR \"$$PWD/textures\" \"$$RES_DEST/\" && $$QMAKE_COPY_DIR \"$$PWD/objects\" \"$$RES_DEST/\"
copy_res.target = copy_res
copy_res.CONFIG += phony
QMAKE_EXTRA_TARGETS += copy_res
PRE_TARGETDEPS += copy_res