20 |
|
target_link_libraries(rhpict rtrad) |
21 |
|
install(TARGETS rholo rhoptimize rhpict RUNTIME DESTINATION bin) |
22 |
|
|
23 |
< |
|
24 |
< |
add_executable(x11.hdi rhdisp.c rhdisp2.c viewbeams.c rhd_x11.c rhd_qtree.c rhd_qtree2r.c rhd_ctab.c holo.c) |
25 |
< |
target_link_libraries (x11.hdi rtrad ${X11_LIBRARIES}) |
26 |
< |
install(TARGETS x11.hdi RUNTIME DESTINATION bin) |
23 |
> |
if(X11_FOUND) |
24 |
> |
add_executable(x11.hdi rhdisp.c rhdisp2.c viewbeams.c rhd_x11.c rhd_qtree.c rhd_qtree2r.c rhd_ctab.c holo.c) |
25 |
> |
target_link_libraries (x11.hdi rtrad ${X11_LIBRARIES}) |
26 |
> |
if(CMAKE_SYSTEM_NAME STREQUAL "SunOS") |
27 |
> |
target_link_libraries(x11.hdi rt) |
28 |
> |
endif() |
29 |
> |
install(TARGETS x11.hdi RUNTIME DESTINATION bin) |
30 |
> |
endif() |
31 |
|
endif() |
32 |
|
|
33 |
|
|