blob: 7870a01ec8ec58354c801e74e18c99bab96fd42a (
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
|
include_directories(${CMAKE_BINARY_DIR}/win)
# Disable auto-generated manifests, since we have our own
if(MSVC)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MANIFEST:NO")
endif()
add_executable(vncviewer WIN32
buildTime.cxx
CConn.cxx
CConnOptions.cxx
CConnThread.cxx
ConnectingDialog.cxx
ConnectionDialog.cxx
DesktopWindow.cxx
InfoDialog.cxx
OptionsDialog.cxx
UserPasswdDialog.cxx
ViewerToolBar.cxx
vncviewer.cxx
vncviewer.rc)
set(VNCVIEWER_LIBRARIES rfb rfb_win32 Xregion network rdr)
# 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)
set(VNCVIEWER_LIBRARIES ${VNCVIEWER_LIBRARIES} ws2_32)
endif()
target_link_libraries(vncviewer ${VNCVIEWER_LIBRARIES})
install(TARGETS vncviewer
RUNTIME DESTINATION .
)
|