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.18 by greg, Tue May 16 22:58:18 2023 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines