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 |
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() |
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) |