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.3 by greg, Fri Oct 28 20:46:47 2011 UTC vs.
Revision 1.6 by greg, Wed May 30 18:31:11 2012 UTC

# Line 1 | Line 1
1 set(VERSION_FILE "${radiance_BINARY_DIR}/src/hd/Version.c")
2 add_custom_command(
3  OUTPUT "${VERSION_FILE}"
4  COMMAND "${CMAKE_COMMAND}"
5  -DVERSION_OUT_FILE="${VERSION_FILE}"
6  -DVERSION_IN_FILE="${radiance_SOURCE_DIR}/src/rt/VERSION"
7  -P "${radiance_SOURCE_DIR}/src/rt/create_version.cmake"
8 )
9
1   add_executable(genrhgrid genrhgrid.c holo.c)
2   target_link_libraries(genrhgrid rtrad)
3  
# Line 15 | Line 6 | target_link_libraries(rhcopy rtrad)
6  
7   add_executable(rhinfo rhinfo.c holo.c holofile.c)
8   target_link_libraries(rhinfo rtrad)
9 < if(NOT WIN32)
9 > if(UNIX)
10    set(VERSION_FILE "${radiance_BINARY_DIR}/src/hd/Version.c")
11    create_version_file("${VERSION_FILE}")
12  
# Line 28 | Line 19 | if(NOT WIN32)
19      rhpict.c rhpict2.c holo.c holofile.c viewbeams.c ${VERSION_FILE})
20    target_link_libraries(rhpict rtrad)
21    install(TARGETS rholo rhoptimize rhpict RUNTIME DESTINATION bin)
22 +
23 +
24 +        add_executable(x11.hdi rhdisp.c rhdisp2.c viewbeams.c rhd_x11.c rhd_qtree.c rhd_qtree2r.c rhd_ctab.c holo.c)
25 +        target_link_libraries (x11.hdi rtrad ${X11_LIBRARIES})
26 +  if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
27 +    target_link_libraries(x11.hdi rt)
28 +  endif()
29 +        install(TARGETS x11.hdi RUNTIME DESTINATION bin)
30   endif()
31  
32 < install(TARGETS genrhgrid rhcopy RUNTIME DESTINATION bin)
32 >
33 > install(TARGETS genrhgrid rhcopy rhinfo RUNTIME DESTINATION bin)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines