ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/CMakeLists.txt
Revision: 1.25
Committed: Thu Jul 24 01:24:01 2025 UTC (2 weeks, 1 day ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.24: +2 -0 lines
Log Message:
chore: Added version string to all CMakeLists.txt files

File Contents

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