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

Comparing src/hd/CMakeLists.txt (file contents):
Revision 1.5 by greg, Wed Apr 25 22:21:06 2012 UTC vs.
Revision 1.10 by greg, Thu Jul 24 01:24:01 2025 UTC

# Line 1 | Line 1
1 + # RCSid $Id$
2 +
3   add_executable(genrhgrid genrhgrid.c holo.c)
4   target_link_libraries(genrhgrid rtrad)
5  
# Line 6 | Line 8 | target_link_libraries(rhcopy rtrad)
8  
9   add_executable(rhinfo rhinfo.c holo.c holofile.c)
10   target_link_libraries(rhinfo rtrad)
11 +
12   if(UNIX)
13    set(VERSION_FILE "${radiance_BINARY_DIR}/src/hd/Version.c")
14    create_version_file("${VERSION_FILE}")
15 +  add_library(version OBJECT "${VERSION_FILE}")
16  
17 <  add_executable(rholo rholo.c rholo2.c rholo2l.c rholo3.c rholo4.c holo.c
18 <    holofile.c viewbeams.c ${VERSION_FILE})
17 >  add_executable(rholo
18 >    holo.c
19 >    holofile.c
20 >    rholo.c
21 >    rholo2.c
22 >    rholo2l.c
23 >    rholo3.c
24 >    rholo4.c
25 >    viewbeams.c
26 >    $<TARGET_OBJECTS:version>
27 >  )
28    target_link_libraries(rholo rtrad)
29 +
30    add_executable(rhoptimize rhoptimize.c clumpbeams.c holo.c holofile.c)
31    target_link_libraries(rhoptimize rtrad)
32 +
33    add_executable(rhpict
34 <    rhpict.c rhpict2.c holo.c holofile.c viewbeams.c ${VERSION_FILE})
34 >    holo.c
35 >    holofile.c
36 >    rhpict.c
37 >    rhpict2.c
38 >    viewbeams.c
39 >    $<TARGET_OBJECTS:version>
40 >  )
41    target_link_libraries(rhpict rtrad)
21  install(TARGETS rholo rhoptimize rhpict RUNTIME DESTINATION bin)
42  
43 +  install(TARGETS rholo rhoptimize rhpict
44 +    RUNTIME DESTINATION "bin"
45 +  )
46  
47 <        add_executable(x11.hdi rhdisp.c rhdisp2.c viewbeams.c rhd_x11.c rhd_qtree.c rhd_qtree2r.c rhd_ctab.c holo.c)
48 <        target_link_libraries (x11.hdi rtrad ${X11_LIBRARIES})
49 <        install(TARGETS x11.hdi RUNTIME DESTINATION bin)
50 < endif()
47 >  if(X11_FOUND)
48 >    add_executable(x11.hdi
49 >      holo.c
50 >      rhd_ctab.c
51 >      rhd_qtree.c
52 >      rhd_qtree2r.c
53 >      rhd_x11.c
54 >      rhdisp.c
55 >      rhdisp2.c
56 >      viewbeams.c
57 >    )
58 >    target_link_libraries(x11.hdi rtrad ${X11_LIBRARIES})
59  
60 +    if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
61 +      target_link_libraries(x11.hdi rt)
62 +    endif()
63 +    install(TARGETS x11.hdi
64 +      RUNTIME DESTINATION "bin/dev"
65 +      )
66  
67 < install(TARGETS genrhgrid rhcopy rhinfo RUNTIME DESTINATION bin)
67 >    if(OPENGL_FOUND)
68 >      add_executable(ogl.hdi
69 >        rhd_ogl.c
70 >        rhdisp.c
71 >        rhdisp2.c
72 >        viewbeams.c
73 >        rhd_odraw.c
74 >        rhd_geom.c
75 >        holo.c)
76 >      target_link_libraries(
77 >        ogl.hdi rgl rtrad ${X11_LIBRARIES} ${OPENGL_LIBRARIES})
78 >      install(TARGETS ogl.hdi
79 >        RUNTIME DESTINATION "bin/dev"
80 >        )
81 >    endif()
82 >
83 >  endif()
84 >    
85 > endif()
86 >
87 > install(TARGETS genrhgrid rhcopy rhinfo
88 >  RUNTIME DESTINATION "bin"
89 > )

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines