| 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 |
> |
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 |
> |
jitteraperture.c |
| 56 |
> |
lamps.c |
| 57 |
> |
linregr.c |
| 58 |
> |
loadbsdf.c |
| 59 |
> |
loadvars.c |
| 60 |
> |
lookup.c |
| 61 |
> |
mat4.c |
| 62 |
> |
mesh.c |
| 63 |
> |
modobject.c |
| 64 |
> |
multisamp.c |
| 65 |
> |
myhostname.c |
| 66 |
> |
normcodec.c |
| 67 |
> |
objset.c |
| 68 |
> |
octree.c |
| 69 |
> |
otypes.c |
| 70 |
> |
paths.c |
| 71 |
> |
plocate.c |
| 72 |
> |
portio.c |
| 73 |
> |
process.c |
| 74 |
> |
quit.c |
| 75 |
> |
readfargs.c |
| 76 |
> |
readmesh.c |
| 77 |
> |
readobj.c |
| 78 |
> |
readoct.c |
| 79 |
> |
resolu.c |
| 80 |
> |
rexpr.c |
| 81 |
> |
savestr.c |
| 82 |
> |
savqstr.c |
| 83 |
> |
sceneio.c |
| 84 |
> |
spec_rgb.c |
| 85 |
> |
tcos.c |
| 86 |
> |
timegm.c |
| 87 |
> |
tmap16bit.c |
| 88 |
> |
tmapcolrs.c |
| 89 |
> |
tmapluv.c |
| 90 |
> |
tmaptiff.c |
| 91 |
> |
tmesh.c |
| 92 |
> |
tonemap.c |
| 93 |
> |
triangulate.c |
| 94 |
> |
urand.c |
| 95 |
> |
urind.c |
| 96 |
> |
wordfile.c |
| 97 |
> |
words.c |
| 98 |
> |
wputs.c |
| 99 |
> |
xf.c |
| 100 |
> |
zeroes.c |
| 101 |
> |
) |
| 102 |
|
|
| 103 |
|
if(UNIX) |
| 104 |
< |
list(APPEND rtrad_SOURCES unix_process.c strcmp.c) |
| 104 |
> |
list(APPEND rtrad_SOURCES unix_process.c) |
| 105 |
> |
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") |
| 106 |
> |
list(APPEND rtrad_SOURCES strlcpy.c) |
| 107 |
> |
endif() |
| 108 |
|
else() |
| 109 |
< |
list(APPEND rtrad_SOURCES win_process.c win_popen.c) |
| 109 |
> |
list(APPEND rtrad_SOURCES win_process.c win_popen.c win_usleep.c strlcpy.c) |
| 110 |
|
endif() |
| 111 |
|
|
| 112 |
|
add_library(rtrad ${rtrad_SOURCES}) |
| 115 |
|
target_link_libraries(rtrad ws2_32) |
| 116 |
|
endif() |
| 117 |
|
|
| 118 |
< |
add_library(rgl rglfile.c rglmat.c rgldomat.c rglsurf.c rglinst.c rglsrc.c) |
| 119 |
< |
add_library(mgf mgf_parser.c mgf_object.c mgf_xf.c mgf_context.c) |
| 118 |
> |
add_library(rgl |
| 119 |
> |
rgldomat.c |
| 120 |
> |
rglfile.c |
| 121 |
> |
rglinst.c |
| 122 |
> |
rglmat.c |
| 123 |
> |
rglsrc.c |
| 124 |
> |
rglsurf.c |
| 125 |
> |
) |
| 126 |
|
|
| 127 |
+ |
add_library(mgf |
| 128 |
+ |
mgf_context.c |
| 129 |
+ |
mgf_object.c |
| 130 |
+ |
mgf_parser.c |
| 131 |
+ |
mgf_xf.c |
| 132 |
+ |
) |
| 133 |
+ |
|
| 134 |
+ |
add_library(wfobj |
| 135 |
+ |
objutil.c |
| 136 |
+ |
readwfobj.c |
| 137 |
+ |
convertobj.c |
| 138 |
+ |
writewfobj.c |
| 139 |
+ |
objtriangulate.c |
| 140 |
+ |
) |
| 141 |
+ |
|
| 142 |
+ |
add_library(reetz |
| 143 |
+ |
g3affine.c |
| 144 |
+ |
g3affine.h |
| 145 |
+ |
g3flist.c |
| 146 |
+ |
g3flist.h |
| 147 |
+ |
g3list.h |
| 148 |
+ |
g3nlist.h |
| 149 |
+ |
g3sphere.c |
| 150 |
+ |
g3sphere.h |
| 151 |
+ |
g3vector.c |
| 152 |
+ |
g3vector.h |
| 153 |
+ |
gbasic.c |
| 154 |
+ |
gbasic.h |
| 155 |
+ |
muc_randvar.c |
| 156 |
+ |
muc_randvar.h |
| 157 |
+ |
) |
| 158 |
+ |
|
| 159 |
+ |
add_executable(testBSDF |
| 160 |
+ |
bsdf.c |
| 161 |
+ |
rtio.h |
| 162 |
+ |
testBSDF.c |
| 163 |
+ |
) |
| 164 |
+ |
target_link_libraries(testBSDF radiance rtrad) |
| 165 |
+ |
|
| 166 |
|
install(TARGETS rtrad mgf |
| 167 |
< |
LIBRARY DESTINATION bin |
| 168 |
< |
ARCHIVE DESTINATION bin) |
| 167 |
> |
LIBRARY DESTINATION "bin" |
| 168 |
> |
ARCHIVE DESTINATION "bin" |
| 169 |
> |
) |
| 170 |
|
|
| 171 |
< |
install(FILES tmesh.cal DESTINATION lib) |
| 171 |
> |
file(COPY tmesh.cal |
| 172 |
> |
DESTINATION "${CMAKE_BINARY_DIR}/lib" |
| 173 |
> |
) |