add_executable(vncviewer ${VNCVIEWER_SOURCES})
endif()
-target_link_libraries(vncviewer rfb network rdr os Xregion ${FLTK_LIBRARIES} ${GETTEXT_LIBRARIES})
+target_link_libraries(vncviewer rfb network rdr os ${FLTK_LIBRARIES} ${GETTEXT_LIBRARIES})
if(APPLE)
target_link_libraries(vncviewer "-framework Cocoa" "-framework Carbon")
vncconfig.cxx
vncconfig.rc)
-target_link_libraries(vncconfig rfb_win32 rfb Xregion network rdr ws2_32.lib)
+target_link_libraries(vncconfig rfb_win32 rfb network rdr ws2_32.lib)
install(TARGETS vncconfig
RUNTIME DESTINATION ${BIN_DIR}
winvnc.cxx
${CMAKE_CURRENT_BINARY_DIR}/winvnc.rc)
-target_link_libraries(winvnc4 rfb rfb_win32 Xregion network rdr ws2_32.lib)
+target_link_libraries(winvnc4 rfb rfb_win32 network rdr ws2_32.lib)
if(BUILD_JAVA)
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/winvnc.rc