ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/CMakeLists.txt
Revision: 1.15
Committed: Mon Jun 8 16:27:05 2020 UTC (3 years, 11 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad5R3
Changes since 1.14: +3 -0 lines
Log Message:
Added strlcpy.c module to Linux builds

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