1 |
set(rtrad_SOURCES |
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) |
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 win_usleep.c strnstr.c strlcpy.c strncasecmp.c) |
112 |
endif() |
113 |
|
114 |
add_library(rtrad ${rtrad_SOURCES}) |
115 |
target_link_libraries(rtrad ${LIB_M}) |
116 |
if(WIN32) |
117 |
target_link_libraries(rtrad ws2_32) |
118 |
endif() |
119 |
|
120 |
add_library(cpprad |
121 |
abitmap.cpp |
122 |
abitmapio.cpp |
123 |
) |
124 |
|
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 |
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 |
) |