ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/CMakeLists.txt
(Generate patch)

Comparing ray/src/gen/CMakeLists.txt (file contents):
Revision 2.1 by greg, Sat Oct 22 22:38:10 2011 UTC vs.
Revision 2.12 by greg, Fri Jul 19 23:38:28 2024 UTC

# Line 1 | Line 1
1 + # Locate the threads package
2 + set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
3 + set(THREADS_PREFER_PTHREAD_FLAG TRUE)
4 + find_package(Threads REQUIRED)
5 +
6   include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../rt)
7  
8   add_executable(genbeads genbeads.c hermite3.c)
9   target_link_libraries(genbeads ${LIB_M})
10  
6 add_executable(genblinds genblinds.c)
7 target_link_libraries(genblinds ${LIB_M})
8
11   add_executable(genbox genbox.c)
12 + target_link_libraries(genbox wfobj rtrad ${LIB_M})
13  
14 < add_executable(genbranch genbranch.c)
15 < target_link_libraries(genbranch ${LIB_M})
14 > add_executable(genmarble genmarble.c ../common/random.h)
15 > target_link_libraries(genmarble ${LIB_M})
16  
17 < add_executable(gencatenary gencat.c)
18 < target_link_libraries(gencatenary rtrad)
17 > add_executable(gensky gensky.c sun.c)
18 > target_link_libraries(gensky rtrad ${LIB_M})
19  
17 add_executable(genclock genclock.c)
18 target_link_libraries(genclock ${LIB_M})
20  
21 + add_executable(genssky genssky.c sun.c atmos.c ../rt/data.c)
22 + target_link_libraries(genssky rtrad ${LIB_M} Threads::Threads)
23 +
24   add_executable(gendaylit gendaylit.c sun.c)
25 < target_link_libraries(gendaylit rtrad)
25 > target_link_libraries(gendaylit rtrad ${LIB_M})
26  
27 < add_executable(genmarble genmarble.c ../common/random.h)
28 < target_link_libraries(genmarble ${LIB_M})
27 > add_executable(gendaymtx gendaymtx.c sun.c)
28 > target_link_libraries(gendaymtx rtrad ${LIB_M})
29  
30 + add_executable(genblinds genblinds.c)
31 + target_link_libraries(genblinds rtrad ${LIB_M})
32 +
33   add_executable(genprism genprism.c)
34 < target_link_libraries(genprism ${LIB_M})
34 > target_link_libraries(genprism rtrad ${LIB_M})
35  
36 < add_executable(genrev genrev.c )
37 < target_link_libraries(genrev rtrad)
36 > add_executable(xform xform.c)
37 > target_link_libraries(xform rtrad)
38  
39 < add_executable(gensky gensky.c sun.c)
40 < target_link_libraries(gensky ${LIB_M})
39 > add_executable(replmarks replmarks.c)
40 > target_link_libraries(replmarks rtrad)
41  
35 add_executable(gensurf gensurf.c)
36 target_link_libraries(gensurf rtrad)
37
38 add_executable(genworm genworm.c)
39 target_link_libraries(genworm rtrad)
40
42   add_executable(mkillum mkillum.c mkillum2.c mkillum3.c)
43   target_link_libraries(mkillum raycalls radiance rtrad)
44  
45   add_executable(mksource mksource.c)
46   target_link_libraries(mksource raycalls radiance rtrad)
47  
48 < add_executable(replmarks replmarks.c)
49 < target_link_libraries(replmarks rtrad)
48 > add_executable(genrev genrev.c)
49 > target_link_libraries(genrev rtrad)
50  
51 < add_executable(xform xform.c)
52 < target_link_libraries(xform rtrad)
51 > add_executable(gencatenary gencat.c)
52 > target_link_libraries(gencatenary rtrad)
53  
54 < install(TARGETS genbox gensky xform genblinds genrev genworm gendaylit gensurf
55 <                genprism replmarks mkillum mksource genclock
55 <        DESTINATION bin)
54 > add_executable(genworm genworm.c)
55 > target_link_libraries(genworm rtrad)
56  
57 < install(FILES illum.cal rev.cal skybright.cal surf.cal clockface.hex glaze1.cal
58 <              glaze2.cal perezlum.cal coeff_perez.dat defangle.dat glaze.csh
59 <        DESTINATION bin)
57 > add_executable(gensurf gensurf.c)
58 > target_link_libraries(gensurf rtrad)
59 >
60 > add_executable(genclock genclock.c)
61 > target_link_libraries(genclock ${LIB_M})
62 >
63 > add_executable(genbranch genbranch.c)
64 > target_link_libraries(genbranch ${LIB_M})
65 >
66 > install(TARGETS
67 >  genblinds
68 >  genbox
69 >  genclock
70 >  gendaylit
71 >  gendaymtx
72 >  genprism
73 >  genrev
74 >  gensky
75 >  genssky
76 >  gensurf
77 >  genworm
78 >  mkillum
79 >  mksource
80 >  replmarks
81 >  xform
82 >  DESTINATION "bin"
83 > )
84 >
85 > file(COPY
86 >  clockface.hex
87 >  glaze1.cal
88 >  glaze2.cal
89 >  illum.cal
90 >  perezlum.cal
91 >  perezlum_c.cal
92 >  rev.cal
93 >  skybright.cal
94 >  surf.cal
95 >  mie_ca.dat
96 >  DESTINATION "${CMAKE_BINARY_DIR}/lib"
97 > )
98 >
99 > if(NOT WIN32)
100 >  install(PROGRAMS glaze.csh
101 >    DESTINATION "bin"
102 >    RENAME glaze
103 >  )
104 > endif()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines