48 |
|
include_directories(${Qt5Widgets_INCLUDE_DIRS}) |
49 |
|
add_definitions("-DHAS_QT") |
50 |
|
endif() |
51 |
< |
if (X11_FOUND OR Qt5Widgets_DIR) |
52 |
< |
add_executable(rvu |
53 |
< |
rvmain.c rview.c rv2.c rv3.c devtable.c devcomm.c editline.c ${X11_SOURCES} |
54 |
< |
colortab.c) |
55 |
< |
target_link_libraries(rvu raycalls radiance rtrad ${X11_LIBRARIES}) |
56 |
< |
list(APPEND targets_to_install rvu) |
51 |
> |
if(NOT BUILD_HEADLESS) |
52 |
> |
if (X11_FOUND OR Qt5Widgets_DIR) |
53 |
> |
add_executable(rvu |
54 |
> |
rvmain.c rview.c rv2.c rv3.c devtable.c devcomm.c editline.c ${X11_SOURCES} |
55 |
> |
colortab.c) |
56 |
> |
target_link_libraries(rvu raycalls radiance rtrad ${X11_LIBRARIES}) |
57 |
> |
list(APPEND targets_to_install rvu) |
58 |
|
|
59 |
< |
# only link to rvu-qt-lib if qt is found |
60 |
< |
if(Qt5Widgets_DIR) |
61 |
< |
target_link_libraries(rvu qtrvu) |
59 |
> |
# only link to rvu-qt-lib if qt is found |
60 |
> |
if(Qt5Widgets_DIR) |
61 |
> |
target_link_libraries(rvu qtrvu) |
62 |
> |
endif() |
63 |
|
endif() |
64 |
|
endif() |
65 |
|
|