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

Comparing ray/src/rt/CMakeLists.txt (file contents):
Revision 1.17 by greg, Mon Jan 8 16:51:32 2018 UTC vs.
Revision 1.19 by greg, Fri Aug 2 18:47:25 2024 UTC

# Line 11 | Line 11 | add_library(radiance
11    ambio.c
12    aniso.c
13    ashikhmin.c
14  data.c
14    dielectric.c
15    fprism.c
16    freeobjmem.c
# Line 105 | Line 104 | if(X11_FOUND)
104    set(X11_SOURCES x11.c x11twind.c)
105    add_definitions(-DHAS_X11)
106   endif()
107 < if(Qt5Widgets_DIR)
107 > if(Qt5Widgets_FOUND AND BUILD_QT)
108    include_directories(${Qt5Widgets_INCLUDE_DIRS})
109    add_definitions(-DHAS_QT)
110   endif()
111   if(NOT BUILD_HEADLESS)
112 <  if(X11_FOUND OR Qt5Widgets_DIR)
112 >  if(X11_FOUND OR BUILD_QT)
113      add_executable(rvu
114        colortab.c
115        devcomm.c
# Line 126 | Line 125 | if(NOT BUILD_HEADLESS)
125      list(APPEND targets_to_install rvu)
126  
127      # only link to rvu-qt-lib if qt is found
128 <    if(Qt5Widgets_DIR)
128 >    if(BUILD_QT)
129        target_link_libraries(rvu qtrvu)
130      endif()
131    endif()
# Line 147 | Line 146 | file(COPY rayinit.cal
146   )
147  
148   #install qt.conf & Qt plugins loaded by rvu at runtime. Ignore if we are building as headless
149 < if(NOT BUILD_HEADLESS)
149 > if(NOT BUILD_HEADLESS AND BUILD_QT)
150    get_target_property(GIF_PLUGIN Qt5::QGifPlugin LOCATION)
151    get_target_property(ICO_PLUGIN Qt5::QICOPlugin LOCATION)
152    get_target_property(JPEG_PLUGIN Qt5::QJpegPlugin LOCATION)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines