-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeExecutables.txt
168 lines (161 loc) · 3.49 KB
/
CMakeExecutables.txt
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
#Demos
if(TIDE_DEMO)
ADD_RESOURCES(A_RES
shaders/outline.frag
shaders/shade.vert
shaders/shade.frag
shaders/tex.vert
shaders/tex.frag
misc/a.obj
misc/diffuse.jpg
misc/specular.jpg
misc/normal.png
)
add_executable(a
example/test.cpp
${CPP_FILES}
${A_RES}
)
target_link_libraries(a
${ALL_LIBS}
${CMAKE_THREAD_LIBS_INIT}
)
add_dependencies(a rscembedding)
ADD_RESOURCES(GEOMETRY_RES
shaders/geotest.vert
shaders/geotest.geom
shaders/geotest.frag
shaders/circle.vert
shaders/circle.geom
shaders/circle.frag
)
add_executable(geometry
example/geometry.cpp
${CPP_FILES}
${GEOMETRY_RES}
)
target_link_libraries(geometry
${ALL_LIBS}
${CMAKE_THREAD_LIBS_INIT}
)
add_dependencies(geometry rscembedding)
ADD_RESOURCES(POSTPROCESS_RES
shaders/tex.vert
shaders/tex.frag
misc/postprocess.jpg
misc/guided.png
shaders/mean.frag
shaders/corr.frag
shaders/alpha.frag
shaders/beta.frag
shaders/guided.frag
)
add_executable(postprocess
example/postprocess.cpp
${CPP_FILES}
${POSTPROCESS_RES}
)
target_link_libraries(postprocess
${ALL_LIBS}
${CMAKE_THREAD_LIBS_INIT}
)
add_dependencies(postprocess rscembedding)
ADD_RESOURCES(NORMAL_RES
shaders/shade.vert
shaders/shade.frag
shaders/normal.vert
shaders/normal.geom
shaders/normal.frag
misc/a.obj
misc/diffuse.jpg
misc/specular.jpg
misc/normal.png
)
add_executable(normal
example/normalvisualize.cpp
${CPP_FILES}
${NORMAL_RES}
)
target_link_libraries(normal
${ALL_LIBS}
${CMAKE_THREAD_LIBS_INIT}
)
add_dependencies(normal rscembedding)
FILE(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/misc/skybox)
ADD_RESOURCES(CUBE_RES
misc/skybox/back.jpg
misc/skybox/bottom.jpg
misc/skybox/front.jpg
misc/skybox/left.jpg
misc/skybox/right.jpg
misc/skybox/top.jpg
shaders/skybox.vert
shaders/skybox.frag
)
add_executable(cubemap
example/cubemap.cpp
${CPP_FILES}
${CUBE_RES}
)
target_link_libraries(cubemap
${ALL_LIBS}
${CMAKE_THREAD_LIBS_INIT}
)
add_dependencies(cubemap rscembedding)
ADD_RESOURCES(DEFOG_RES
shaders/defog.vert
shaders/defog.frag
shaders/tex.vert
shaders/tex.frag
misc/defog.jpg
)
add_executable(defog
example/defog.cpp
${CPP_FILES}
${DEFOG_RES}
)
target_link_libraries(defog
${ALL_LIBS}
${CMAKE_THREAD_LIBS_INIT}
)
add_dependencies(defog rscembedding)
ADD_RESOURCES(SHADOW_RES
shaders/plane.vert
shaders/plane.frag
misc/wood.png
misc/skybox/back.jpg
misc/skybox/bottom.jpg
misc/skybox/front.jpg
misc/skybox/left.jpg
misc/skybox/right.jpg
misc/skybox/top.jpg
shaders/skybox.vert
shaders/skybox.frag
)
add_executable(shadow
example/shadow.cpp
${CPP_FILES}
${SHADOW_RES}
)
target_link_libraries(shadow
${ALL_LIBS}
${CMAKE_THREAD_LIBS_INIT}
)
add_dependencies(shadow rscembedding)
endif(TIDE_DEMO)
#参照下方格式添加
#ADD_RESOURCES(XXX_RES
# 打包至可执行文件中的资源文件
#)
#include_directories(
# 项目头文件
#)
#add_executable(xxx
# 项目cpp文件
# ${XXX_RES}
#)
#target_link_libraries(xxx
# ${ALL_LIBS}
# ${CMAKE_THREAD_LIBS_INIT}
#)
#add_dependencies(xxx rscembedding)