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

Comparing ray/src/hd/CMakeLists.txt (file contents):
Revision 1.8 by greg, Mon Jan 8 16:51:32 2018 UTC vs.
Revision 1.9 by greg, Wed Nov 22 17:12:58 2023 UTC

# Line 10 | Line 10 | target_link_libraries(rhinfo rtrad)
10   if(UNIX)
11    set(VERSION_FILE "${radiance_BINARY_DIR}/src/hd/Version.c")
12    create_version_file("${VERSION_FILE}")
13 +  add_library(version OBJECT "${VERSION_FILE}")
14  
15    add_executable(rholo
16      holo.c
# Line 20 | Line 21 | if(UNIX)
21      rholo3.c
22      rholo4.c
23      viewbeams.c
24 <    ${VERSION_FILE}
24 >    $<TARGET_OBJECTS:version>
25    )
26    target_link_libraries(rholo rtrad)
27  
# Line 33 | Line 34 | if(UNIX)
34      rhpict.c
35      rhpict2.c
36      viewbeams.c
37 <    ${VERSION_FILE}
37 >    $<TARGET_OBJECTS:version>
38    )
39    target_link_libraries(rhpict rtrad)
40  
# Line 58 | Line 59 | if(UNIX)
59        target_link_libraries(x11.hdi rt)
60      endif()
61      install(TARGETS x11.hdi
62 <      RUNTIME DESTINATION "bin"
63 <    )
62 >      RUNTIME DESTINATION "bin/dev"
63 >      )
64 >
65 >    if(OPENGL_FOUND)
66 >      add_executable(ogl.hdi
67 >        rhd_ogl.c
68 >        rhdisp.c
69 >        rhdisp2.c
70 >        viewbeams.c
71 >        rhd_odraw.c
72 >        rhd_geom.c
73 >        holo.c)
74 >      target_link_libraries(
75 >        ogl.hdi rgl rtrad ${X11_LIBRARIES} ${OPENGL_LIBRARIES})
76 >      install(TARGETS ogl.hdi
77 >        RUNTIME DESTINATION "bin/dev"
78 >        )
79 >    endif()
80 >
81    endif()
82 +    
83   endif()
84  
85   install(TARGETS genrhgrid rhcopy rhinfo

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines