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 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 |
> |
data.c |
24 |
> |
depthcodec.c |
25 |
> |
dircode.c |
26 |
> |
disk2square.c |
27 |
> |
dmessage.c |
28 |
> |
ealloc.c |
29 |
> |
eputs.c |
30 |
> |
erf.c |
31 |
> |
error.c |
32 |
> |
expandarg.c |
33 |
> |
ezxml.c |
34 |
> |
face.c |
35 |
> |
falsecolor.c |
36 |
> |
fdate.c |
37 |
> |
fgetline.c |
38 |
> |
fgetval.c |
39 |
> |
fgetword.c |
40 |
> |
fixargv0.c |
41 |
> |
fltdepth.c |
42 |
> |
font.c |
43 |
> |
fputword.c |
44 |
> |
free_os.c |
45 |
> |
fropen.c |
46 |
> |
fvect.c |
47 |
> |
gethomedir.c |
48 |
> |
getlibpath.c |
49 |
> |
getpath.c |
50 |
> |
header.c |
51 |
> |
hilbert.c |
52 |
> |
idmap.c |
53 |
> |
image.c |
54 |
> |
instance.c |
55 |
> |
interp2d.c |
56 |
> |
invmat4.c |
57 |
> |
jitteraperture.c |
58 |
> |
lamps.c |
59 |
> |
linregr.c |
60 |
> |
loadbsdf.c |
61 |
> |
loadvars.c |
62 |
> |
lookup.c |
63 |
> |
mat4.c |
64 |
> |
mesh.c |
65 |
> |
modobject.c |
66 |
> |
multisamp.c |
67 |
> |
myhostname.c |
68 |
> |
normcodec.c |
69 |
> |
objset.c |
70 |
> |
octree.c |
71 |
> |
otypes.c |
72 |
> |
paths.c |
73 |
> |
plocate.c |
74 |
> |
portio.c |
75 |
> |
process.c |
76 |
> |
quit.c |
77 |
> |
readfargs.c |
78 |
> |
readmesh.c |
79 |
> |
readobj.c |
80 |
> |
readoct.c |
81 |
> |
resolu.c |
82 |
> |
rexpr.c |
83 |
> |
savestr.c |
84 |
> |
savqstr.c |
85 |
> |
sceneio.c |
86 |
> |
spec_rgb.c |
87 |
> |
tcos.c |
88 |
> |
timegm.c |
89 |
> |
tmap16bit.c |
90 |
> |
tmapcolrs.c |
91 |
> |
tmapluv.c |
92 |
> |
tmaptiff.c |
93 |
> |
tmesh.c |
94 |
> |
tonemap.c |
95 |
> |
triangulate.c |
96 |
> |
urand.c |
97 |
> |
urind.c |
98 |
> |
wordfile.c |
99 |
> |
words.c |
100 |
> |
wputs.c |
101 |
> |
xf.c |
102 |
> |
zeroes.c |
103 |
> |
) |
104 |
|
|
105 |
|
if(UNIX) |
106 |
< |
list(APPEND rtrad_SOURCES unix_process.c strcmp.c) |
106 |
> |
list(APPEND rtrad_SOURCES unix_process.c) |
107 |
> |
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") |
108 |
> |
list(APPEND rtrad_SOURCES strnstr.c strlcpy.c) |
109 |
> |
endif() |
110 |
|
else() |
111 |
< |
list(APPEND rtrad_SOURCES win_process.c win_popen.c) |
111 |
> |
list(APPEND rtrad_SOURCES win_process.c win_popen.c win_usleep.c strnstr.o strlcpy.c) |
112 |
|
endif() |
113 |
|
|
114 |
|
add_library(rtrad ${rtrad_SOURCES}) |
117 |
|
target_link_libraries(rtrad ws2_32) |
118 |
|
endif() |
119 |
|
|
120 |
< |
add_library(rgl rglfile.c rglmat.c rgldomat.c rglsurf.c rglinst.c rglsrc.c) |
121 |
< |
add_library(mgf mgf_parser.c mgf_object.c mgf_xf.c mgf_context.c) |
122 |
< |
add_library(libreetz g3affine.c g3affine.h g3flist.c g3flist.h g3list.h g3nlist.h |
123 |
< |
g3sphere.c g3sphere.h g3vector.c g3vector.h gbasic.c gbasic.h) |
120 |
> |
add_library(cpprad |
121 |
> |
abitmap.cpp |
122 |
> |
abitmapio.cpp |
123 |
> |
) |
124 |
|
|
125 |
< |
install(TARGETS rtrad mgf |
126 |
< |
LIBRARY DESTINATION bin |
127 |
< |
ARCHIVE DESTINATION bin) |
125 |
> |
add_library(rgl |
126 |
> |
rgldomat.c |
127 |
> |
rglfile.c |
128 |
> |
rglinst.c |
129 |
> |
rglmat.c |
130 |
> |
rglsrc.c |
131 |
> |
rglsurf.c |
132 |
> |
) |
133 |
|
|
134 |
< |
install(FILES tmesh.cal DESTINATION lib) |
134 |
> |
add_library(mgf |
135 |
> |
mgf_context.c |
136 |
> |
mgf_object.c |
137 |
> |
mgf_parser.c |
138 |
> |
mgf_xf.c |
139 |
> |
) |
140 |
> |
|
141 |
> |
add_library(wfobj |
142 |
> |
objutil.c |
143 |
> |
readwfobj.c |
144 |
> |
convertobj.c |
145 |
> |
writewfobj.c |
146 |
> |
objtriangulate.c |
147 |
> |
) |
148 |
> |
|
149 |
> |
add_library(reetz |
150 |
> |
g3affine.c |
151 |
> |
g3flist.c |
152 |
> |
g3sphere.c |
153 |
> |
g3vector.c |
154 |
> |
gbasic.c |
155 |
> |
muc_randvar.c |
156 |
> |
) |
157 |
> |
|
158 |
> |
add_executable(testBSDF |
159 |
> |
bsdf.c |
160 |
> |
rtio.h |
161 |
> |
testBSDF.c |
162 |
> |
) |
163 |
> |
target_link_libraries(testBSDF radiance rtrad) |
164 |
> |
|
165 |
> |
install(TARGETS rtrad cpprad mgf |
166 |
> |
LIBRARY DESTINATION "bin" |
167 |
> |
ARCHIVE DESTINATION "bin" |
168 |
> |
) |
169 |
> |
|
170 |
> |
file(COPY tmesh.cal |
171 |
> |
DESTINATION "${CMAKE_BINARY_DIR}/lib" |
172 |
> |
) |