blob: 5ea0ab4cb2e3afcf5b25b22ca9d9adfb111b1ab5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
include_directories(${FLTK_INCLUDE_DIR})
include_directories(${GETTEXT_INCLUDE_DIR})
include_directories(${CMAKE_SOURCE_DIR}/common)
set(VNCVIEWER_SOURCES
buildTime.cxx
CConn.cxx
DesktopWindow.cxx
UserDialog.cxx
ServerDialog.cxx
OptionsDialog.cxx
Viewport.cxx
parameters.cxx
keysym2ucs.c
vncviewer.cxx)
if(WIN32)
set(VNCVIEWER_SOURCES ${VNCVIEWER_SOURCES} win32.c)
endif()
if(APPLE)
set(VNCVIEWER_SOURCES ${VNCVIEWER_SOURCES} cocoa.mm)
endif()
if(WIN32)
set(VNCVIEWER_SOURCES ${VNCVIEWER_SOURCES} Win32PixelBuffer.cxx)
elseif(APPLE)
set(VNCVIEWER_SOURCES ${VNCVIEWER_SOURCES} OSXPixelBuffer.cxx)
else()
set(VNCVIEWER_SOURCES ${VNCVIEWER_SOURCES} X11PixelBuffer.cxx)
endif()
if(WIN32)
add_executable(vncviewer WIN32 ${VNCVIEWER_SOURCES})
else()
add_executable(vncviewer ${VNCVIEWER_SOURCES})
endif()
if(USE_INCLUDED_FLTK)
target_link_libraries(vncviewer fltk_static)
endif()
target_link_libraries(vncviewer rfb network rdr os Xregion ${FLTK_LIBRARIES} ${GETTEXT_LIBRARIES})
# When building with GnuTLS, librdr depends on ws2_32, so in order to make
# MinGW happy, we need to put ws2_32 in librdr's target_link_libraries string,
# not here.
if(NOT GNUTLS_FOUND AND WIN32)
target_link_libraries(vncviewer ws2_32)
endif()
install(TARGETS vncviewer DESTINATION bin)
if(UNIX)
install(FILES vncviewer.man DESTINATION man/man1 RENAME vncviewer.1)
endif()
|