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

Comparing ray/src/util/CMakeLists.txt (file contents):
Revision 1.1 by greg, Sat Oct 22 22:38:10 2011 UTC vs.
Revision 1.5 by greg, Wed May 30 18:31:11 2012 UTC

# Line 1 | Line 1
1   set(VERSION_FILE "${radiance_BINARY_DIR}/src/util/Version.c")
2 < add_custom_command(
3 <  OUTPUT "${VERSION_FILE}"
4 <  DEPENDS "${radiance_SOURCE_DIR}/src/util/VERSION"
5 <  COMMAND "${CMAKE_COMMAND}"
6 <  -DVERSION_OUT_FILE="${VERSION_FILE}"
7 <  -DVERSION_IN_FILE="${radiance_SOURCE_DIR}/src/util/VERSION"
8 <  -P "${radiance_SOURCE_DIR}/src/common/create_version.cmake"
9 < )
2 > create_version_file("${VERSION_FILE}")
3  
4   add_executable(dctimestep dctimestep.c)
5   target_link_libraries(dctimestep rtrad)
# Line 59 | Line 52 | if(X11_FOUND)
52    install(TARGETS xglaresrc RUNTIME DESTINATION bin)
53   endif()
54  
55 < find_library(LIB_RGL "rgl" DOC "Path to librgl")
56 < if(LIB_RGL)
57 <  #glrad needs to be able to include OpenGL headers
55 > #glrad needs to link against OpenGL libraries
56 > if(APPLE)
57 >  find_library(OPENGL_gl_LIBRARY
58 >    NAMES GL MesaGL
59 >    PATHS /usr/X11R6/lib
60 >  )
61 >  find_library(OPENGL_glu_LIBRARY
62 >    NAMES GLU MesaGLU
63 >    PATHS /usr/X11R6/lib
64 >  )
65 >  set(OPENGL_LIBRARIES ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY})
66 > else()
67 >  find_package(OpenGL REQUIRED)
68    include_directories(${OPENGL_INCLUDE_DIR})
69 + endif()
70  
71 <  #check if we have SGIStereo.h
72 <  find_file(HAVE_SGISTEREO_H "SGIStereo.h" ${OPENGL_INCLUDE_DIR})
73 <  if(NOT HAVE_SGISTEREO_H)
74 <    add_definitions(-DNOSTEREO)
71 > #check if       we have SGIStereo.h
72 > find_file(HAVE_SGISTEREO_H "SGIStereo.h" ${OPENGL_INCLUDE_DIR})
73 > if(NOT HAVE_SGISTEREO_H)
74 >        add_definitions(-DNOSTEREO)
75 > endif()
76 > if(UNIX)
77 >        add_executable(glrad glrad.c)
78 >        target_link_libraries(glrad rgl rtrad ${OPENGL_LIBRARIES} ${X11_LIBRARIES})
79 >        install(TARGETS rpiece RUNTIME DESTINATION bin)
80 >  if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
81 >    target_link_libraries(glrad rt)
82    endif()
72
73  add_executable(glrad glrad.c)
74  target_link_libraries(glrad
75    rtrad ${LIB_RGL} ${OPENGL_LIBRARIES} ${X11_LIBRARIES})
76  install(TARGETS glrad RUNTIME DESTINATION bin)
83   endif()
84 <
79 < install(TARGETS dctimestep findglare getinfo glarendx rad ranimate rpiece
84 > install(TARGETS dctimestep findglare getinfo glarendx rad ranimate
85                  rtcontrib vwrays vwright ranimove rsensor
86          RUNTIME DESTINATION bin)
87 < install(FILES objview.csh objpict.csh glare.csh dayfact.csh rlux.csh
88 <              raddepend.csh trad.wsh objline.csh compamb.csh vinfo.csh
89 <              genambpos.csh fieldcomb.csh genklemsamp.pl genskyvec.pl
90 <              genBSDF.pl tregsamp.dat
91 <        DESTINATION bin)
87 >
88 > if(WIN32)
89 >  install(PROGRAMS genBSDF.pl DESTINATION bin)
90 >  install(PROGRAMS genklemsamp.pl DESTINATION bin)
91 >  install(PROGRAMS genskyvec.pl DESTINATION bin)
92 >  install(FILES tregsamp.dat DESTINATION bin)
93 > else()
94 >  install(PROGRAMS genBSDF.pl DESTINATION bin RENAME genBSDF)
95 >  install(PROGRAMS genklemsamp.pl DESTINATION bin RENAME genklemsamp)
96 >  install(PROGRAMS genskyvec.pl DESTINATION bin RENAME genskyvec)
97 >  install(PROGRAMS objview.csh DESTINATION bin RENAME objview)
98 >  install(PROGRAMS objpict.csh DESTINATION bin RENAME objpict)
99 >  install(PROGRAMS glare.csh DESTINATION bin RENAME glare)
100 >  install(PROGRAMS dayfact.csh DESTINATION bin RENAME dayfact)
101 >  install(PROGRAMS rlux.csh DESTINATION bin RENAME rlux)
102 >  install(PROGRAMS raddepend.csh DESTINATION bin RENAME raddepend)
103 >  install(PROGRAMS trad.wsh DESTINATION bin RENAME trad)
104 >  install(PROGRAMS objline.csh DESTINATION bin RENAME objline)
105 >  install(PROGRAMS compamb.csh DESTINATION bin RENAME compamb)
106 >  install(PROGRAMS vinfo.csh DESTINATION bin RENAME vinfo)
107 >  install(PROGRAMS genambpos.csh DESTINATION bin RENAME genambpos)
108 >  install(PROGRAMS fieldcomb.csh DESTINATION bin RENAME fieldcomb)
109 >  install(FILES tregsamp.dat DESTINATION lib)
110 > endif()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines