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.8 by greg, Mon Jan 8 16:51:32 2018 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 10 | Line 12 | target_link_libraries(rhinfo rtrad)
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
18      holo.c
# Line 20 | Line 23 | if(UNIX)
23      rholo3.c
24      rholo4.c
25      viewbeams.c
26 <    ${VERSION_FILE}
26 >    $<TARGET_OBJECTS:version>
27    )
28    target_link_libraries(rholo rtrad)
29  
# Line 33 | Line 36 | if(UNIX)
36      rhpict.c
37      rhpict2.c
38      viewbeams.c
39 <    ${VERSION_FILE}
39 >    $<TARGET_OBJECTS:version>
40    )
41    target_link_libraries(rhpict rtrad)
42  
# Line 58 | Line 61 | if(UNIX)
61        target_link_libraries(x11.hdi rt)
62      endif()
63      install(TARGETS x11.hdi
64 <      RUNTIME DESTINATION "bin"
65 <    )
64 >      RUNTIME DESTINATION "bin/dev"
65 >      )
66 >
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines