11 |
|
ambio.c |
12 |
|
aniso.c |
13 |
|
ashikhmin.c |
14 |
– |
data.c |
14 |
|
dielectric.c |
15 |
|
fprism.c |
16 |
|
freeobjmem.c |
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 |
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() |
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) |