1 |
|
set(rtrad_SOURCES |
2 |
< |
addobjnotify.c badarg.c biggerlib.c bmalloc.c bmpfile.c bsdf.c bsdf_m.c |
3 |
< |
bsdf_t.c byteswap.c caldefn.c calexpr.c calfunc.c calprnt.c ccolor.c ccyrgb.c |
4 |
< |
chanvalue.c clip.c color.c colrops.c cone.c cvtcmd.c dircode.c disk2square.c ealloc.c |
5 |
< |
eputs.c erf.c error.c expandarg.c ezxml.c face.c falsecolor.c fdate.c |
6 |
< |
fgetline.c fgetval.c fgetword.c fixargv0.c font.c fputword.c free_os.c |
7 |
< |
fropen.c fvect.c gethomedir.c getlibpath.c getpath.c header.c hilbert.c |
8 |
< |
image.c instance.c invmat4.c lamps.c linregr.c loadbsdf.c loadvars.c lookup.c |
9 |
< |
mat4.c mesh.c modobject.c multisamp.c myhostname.c objset.c octree.c otypes.c |
10 |
< |
paths.c plocate.c portio.c process.c quit.c readfargs.c readmesh.c readobj.c |
11 |
< |
readoct.c resolu.c rexpr.c savqstr.c savestr.c sceneio.c spec_rgb.c tcos.c |
12 |
< |
tmap16bit.c tmapcolrs.c tmapluv.c timegm.c tmaptiff.c tmesh.c tonemap.c |
13 |
< |
triangulate.c urand.c urind.c words.c wordfile.c wputs.c xf.c zeroes.c) |
2 |
> |
addobjnotify.c |
3 |
> |
badarg.c |
4 |
> |
biggerlib.c |
5 |
> |
bmalloc.c |
6 |
> |
bmpfile.c |
7 |
> |
bsdf.c |
8 |
> |
bsdf_m.c |
9 |
> |
bsdf_t.c |
10 |
> |
byteswap.c |
11 |
> |
caldefn.c |
12 |
> |
calexpr.c |
13 |
> |
calfunc.c |
14 |
> |
calprnt.c |
15 |
> |
ccolor.c |
16 |
> |
ccyrgb.c |
17 |
> |
chanvalue.c |
18 |
> |
clip.c |
19 |
> |
color.c |
20 |
> |
colrops.c |
21 |
> |
cone.c |
22 |
> |
cvtcmd.c |
23 |
> |
depthcodec.c |
24 |
> |
dircode.c |
25 |
> |
disk2square.c |
26 |
> |
ealloc.c |
27 |
> |
eputs.c |
28 |
> |
erf.c |
29 |
> |
error.c |
30 |
> |
expandarg.c |
31 |
> |
ezxml.c |
32 |
> |
face.c |
33 |
> |
falsecolor.c |
34 |
> |
fdate.c |
35 |
> |
fgetline.c |
36 |
> |
fgetval.c |
37 |
> |
fgetword.c |
38 |
> |
fixargv0.c |
39 |
> |
fltdepth.c |
40 |
> |
font.c |
41 |
> |
fputword.c |
42 |
> |
free_os.c |
43 |
> |
fropen.c |
44 |
> |
fvect.c |
45 |
> |
gethomedir.c |
46 |
> |
getlibpath.c |
47 |
> |
getpath.c |
48 |
> |
header.c |
49 |
> |
hilbert.c |
50 |
> |
idmap.c |
51 |
> |
image.c |
52 |
> |
instance.c |
53 |
> |
interp2d.c |
54 |
> |
invmat4.c |
55 |
> |
lamps.c |
56 |
> |
linregr.c |
57 |
> |
loadbsdf.c |
58 |
> |
loadvars.c |
59 |
> |
lookup.c |
60 |
> |
mat4.c |
61 |
> |
mesh.c |
62 |
> |
modobject.c |
63 |
> |
multisamp.c |
64 |
> |
myhostname.c |
65 |
> |
normcodec.c |
66 |
> |
objset.c |
67 |
> |
octree.c |
68 |
> |
otypes.c |
69 |
> |
paths.c |
70 |
> |
plocate.c |
71 |
> |
portio.c |
72 |
> |
process.c |
73 |
> |
quit.c |
74 |
> |
readfargs.c |
75 |
> |
readmesh.c |
76 |
> |
readobj.c |
77 |
> |
readoct.c |
78 |
> |
resolu.c |
79 |
> |
rexpr.c |
80 |
> |
savestr.c |
81 |
> |
savqstr.c |
82 |
> |
sceneio.c |
83 |
> |
spec_rgb.c |
84 |
> |
tcos.c |
85 |
> |
timegm.c |
86 |
> |
tmap16bit.c |
87 |
> |
tmapcolrs.c |
88 |
> |
tmapluv.c |
89 |
> |
tmaptiff.c |
90 |
> |
tmesh.c |
91 |
> |
tonemap.c |
92 |
> |
triangulate.c |
93 |
> |
urand.c |
94 |
> |
urind.c |
95 |
> |
wordfile.c |
96 |
> |
words.c |
97 |
> |
wputs.c |
98 |
> |
xf.c |
99 |
> |
zeroes.c |
100 |
> |
) |
101 |
|
|
102 |
|
if(UNIX) |
103 |
< |
list(APPEND rtrad_SOURCES unix_process.c strcmp.c) |
103 |
> |
list(APPEND rtrad_SOURCES unix_process.c) |
104 |
|
else() |
105 |
< |
list(APPEND rtrad_SOURCES win_process.c win_popen.c) |
105 |
> |
list(APPEND rtrad_SOURCES win_process.c win_popen.c win_usleep.c strlcpy.c) |
106 |
|
endif() |
107 |
|
|
108 |
|
add_library(rtrad ${rtrad_SOURCES}) |
111 |
|
target_link_libraries(rtrad ws2_32) |
112 |
|
endif() |
113 |
|
|
114 |
< |
add_library(rgl rglfile.c rglmat.c rgldomat.c rglsurf.c rglinst.c rglsrc.c) |
115 |
< |
add_library(mgf mgf_parser.c mgf_object.c mgf_xf.c mgf_context.c) |
116 |
< |
add_library(libreetz g3affine.c g3affine.h g3flist.c g3flist.h g3list.h g3nlist.h |
117 |
< |
g3sphere.c g3sphere.h g3vector.c g3vector.h gbasic.c gbasic.h muc_randvar.c muc_randvar.h) |
114 |
> |
add_library(rgl |
115 |
> |
rgldomat.c |
116 |
> |
rglfile.c |
117 |
> |
rglinst.c |
118 |
> |
rglmat.c |
119 |
> |
rglsrc.c |
120 |
> |
rglsurf.c |
121 |
> |
) |
122 |
|
|
123 |
< |
if (BUILD_TESTING) |
124 |
< |
add_executable(testBSDF testBSDF.c bsdf.c rtio.h) |
125 |
< |
target_link_libraries(testBSDF radiance rtrad) |
126 |
< |
endif() |
123 |
> |
add_library(mgf |
124 |
> |
mgf_context.c |
125 |
> |
mgf_object.c |
126 |
> |
mgf_parser.c |
127 |
> |
mgf_xf.c |
128 |
> |
) |
129 |
|
|
130 |
+ |
add_library(libreetz |
131 |
+ |
g3affine.c |
132 |
+ |
g3affine.h |
133 |
+ |
g3flist.c |
134 |
+ |
g3flist.h |
135 |
+ |
g3list.h |
136 |
+ |
g3nlist.h |
137 |
+ |
g3sphere.c |
138 |
+ |
g3sphere.h |
139 |
+ |
g3vector.c |
140 |
+ |
g3vector.h |
141 |
+ |
gbasic.c |
142 |
+ |
gbasic.h |
143 |
+ |
muc_randvar.c |
144 |
+ |
muc_randvar.h |
145 |
+ |
) |
146 |
+ |
|
147 |
+ |
add_executable(testBSDF |
148 |
+ |
bsdf.c |
149 |
+ |
rtio.h |
150 |
+ |
testBSDF.c |
151 |
+ |
) |
152 |
+ |
target_link_libraries(testBSDF radiance rtrad) |
153 |
+ |
|
154 |
|
install(TARGETS rtrad mgf |
155 |
< |
LIBRARY DESTINATION bin |
156 |
< |
ARCHIVE DESTINATION bin) |
155 |
> |
LIBRARY DESTINATION "bin" |
156 |
> |
ARCHIVE DESTINATION "bin" |
157 |
> |
) |
158 |
|
|
159 |
< |
install(FILES tmesh.cal DESTINATION lib) |
159 |
> |
file(COPY tmesh.cal |
160 |
> |
DESTINATION "${CMAKE_BINARY_DIR}/lib" |
161 |
> |
) |