ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/CMakeLists.txt
Revision: 1.22
Committed: Tue Dec 3 01:11:43 2024 UTC (5 months ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 1.21: +2 -2 lines
Log Message:
fix: Added strnstr.c compatibility module for Windows and Linux

File Contents

# User Rev Content
1 greg 1.1 set(rtrad_SOURCES
2 greg 1.8 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 greg 1.19 data.c
24 greg 1.12 depthcodec.c
25 greg 1.8 dircode.c
26     disk2square.c
27 greg 1.20 dmessage.c
28 greg 1.8 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 greg 1.13 fltdepth.c
42 greg 1.8 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 greg 1.12 idmap.c
53 greg 1.8 image.c
54     instance.c
55     interp2d.c
56     invmat4.c
57 greg 1.18 jitteraperture.c
58 greg 1.8 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 greg 1.12 normcodec.c
69 greg 1.8 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 greg 1.1
105     if(UNIX)
106 greg 1.9 list(APPEND rtrad_SOURCES unix_process.c)
107 greg 1.15 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
108 greg 1.22 list(APPEND rtrad_SOURCES strnstr.c strlcpy.c)
109 greg 1.15 endif()
110 greg 1.1 else()
111 greg 1.22 list(APPEND rtrad_SOURCES win_process.c win_popen.c win_usleep.c strnstr.o strlcpy.c)
112 greg 1.1 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 greg 1.21 add_library(cpprad
121 greg 1.20 abitmap.cpp
122     abitmapio.cpp
123     )
124    
125 greg 1.8 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 greg 1.14 add_library(wfobj
142     objutil.c
143     readwfobj.c
144     convertobj.c
145     writewfobj.c
146 greg 1.16 objtriangulate.c
147 greg 1.14 )
148    
149 greg 1.17 add_library(reetz
150 greg 1.8 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 greg 1.6
165 greg 1.20 install(TARGETS rtrad cpprad mgf
166 greg 1.8 LIBRARY DESTINATION "bin"
167     ARCHIVE DESTINATION "bin"
168     )
169    
170     file(COPY tmesh.cal
171     DESTINATION "${CMAKE_BINARY_DIR}/lib"
172     )