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

Comparing ray/src/gen/CMakeLists.txt (file contents):
Revision 2.2 by greg, Wed Apr 25 22:21:06 2012 UTC vs.
Revision 2.18 by greg, Tue May 6 21:18:42 2025 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(genglaze genglaze.c ../common/data.h)
18 > target_link_libraries(genglaze rtrad ${LIB_M})
19  
20 < add_executable(genclock genclock.c)
21 < target_link_libraries(genclock ${LIB_M})
20 > add_executable(gensky gensky.c sun.c)
21 > target_link_libraries(gensky rtrad ${LIB_M})
22  
23 < add_executable(gendaylit gendaylit.c sun.c)
24 < target_link_libraries(gendaylit rtrad)
23 > add_executable(genssky genssky.c sun.c atmos.c)
24 > target_link_libraries(genssky rtrad ${LIB_M} Threads::Threads)
25  
26 < add_executable(genmarble genmarble.c ../common/random.h)
27 < target_link_libraries(genmarble ${LIB_M})
26 > add_executable(gensdaymtx gensdaymtx.c sun.c atmos.c loadEPW.c)
27 > target_link_libraries(gensdaymtx rtrad ${LIB_M} Threads::Threads)
28  
29 < add_executable(genprism genprism.c)
30 < target_link_libraries(genprism ${LIB_M})
29 > add_executable(gendaylit gendaylit.c sun.c)
30 > target_link_libraries(gendaylit rtrad ${LIB_M})
31  
32 < add_executable(genrev genrev.c )
33 < target_link_libraries(genrev rtrad)
32 > add_executable(gendaymtx gendaymtx.c sun.c loadEPW.c)
33 > target_link_libraries(gendaymtx rtrad ${LIB_M})
34  
35 < add_executable(gensky gensky.c sun.c)
36 < target_link_libraries(gensky ${LIB_M})
35 > add_executable(genblinds genblinds.c)
36 > target_link_libraries(genblinds rtrad ${LIB_M})
37  
38 < add_executable(gensurf gensurf.c)
39 < target_link_libraries(gensurf rtrad)
38 > add_executable(genprism genprism.c)
39 > target_link_libraries(genprism rtrad ${LIB_M})
40  
41 < add_executable(genworm genworm.c)
42 < target_link_libraries(genworm rtrad)
41 > add_executable(xform xform.c)
42 > target_link_libraries(xform rtrad)
43  
44 + add_executable(replmarks replmarks.c)
45 + target_link_libraries(replmarks rtrad)
46 +
47   add_executable(mkillum mkillum.c mkillum2.c mkillum3.c)
48   target_link_libraries(mkillum raycalls radiance rtrad)
49  
50   add_executable(mksource mksource.c)
51   target_link_libraries(mksource raycalls radiance rtrad)
52  
53 < add_executable(replmarks replmarks.c)
54 < target_link_libraries(replmarks rtrad)
53 > add_executable(genrev genrev.c)
54 > target_link_libraries(genrev rtrad)
55  
56 < add_executable(xform xform.c)
57 < target_link_libraries(xform rtrad)
56 > add_executable(gencatenary gencat.c)
57 > target_link_libraries(gencatenary rtrad)
58  
59 < install(TARGETS genbox gensky xform genblinds genrev genworm gendaylit gensurf
60 <                genprism replmarks mkillum mksource genclock
55 <        DESTINATION bin)
59 > add_executable(genworm genworm.c)
60 > target_link_libraries(genworm rtrad)
61  
62 < install(FILES illum.cal rev.cal skybright.cal surf.cal clockface.hex glaze1.cal
63 <              glaze2.cal perezlum.cal coeff_perez.dat defangle.dat
59 <        DESTINATION lib)
62 > add_executable(gensurf gensurf.c)
63 > target_link_libraries(gensurf rtrad)
64  
65 < if (NOT WIN32)
66 <  install(PROGRAMS glaze.csh DESTINATION bin RENAME glaze)
67 < endif()
65 > add_executable(genclock genclock.c)
66 > target_link_libraries(genclock ${LIB_M})
67 >
68 > add_executable(genbranch genbranch.c)
69 > target_link_libraries(genbranch ${LIB_M})
70 >
71 > install(TARGETS
72 >  genblinds
73 >  genbox
74 >  genclock
75 >  gendaylit
76 >  gendaymtx
77 >  genglaze
78 >  gensdaymtx
79 >  genprism
80 >  genrev
81 >  gensky
82 >  genssky
83 >  gensurf
84 >  genworm
85 >  mkillum
86 >  mksource
87 >  replmarks
88 >  xform
89 >  DESTINATION "bin"
90 > )
91 >
92 > file(COPY
93 >  clockface.hex
94 >  glaze1.cal
95 >  glaze2.cal
96 >  illum.cal
97 >  perezlum.cal
98 >  perezlum_c.cal
99 >  rev.cal
100 >  skybright.cal
101 >  surf.cal
102 >  mie_ca.dat
103 >  DESTINATION "${CMAKE_BINARY_DIR}/lib"
104 > )
105 >
106 > if(NOT WIN32)
107 >  install(PROGRAMS glaze.csh
108 >    DESTINATION "bin"
109 >    RENAME glaze
110 >  )
111 > endif()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines