blob: 1e3dd42c25d7848b0e6b64dbf1a576b044c8601f (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# This file is included from the top-level CMakeLists.txt. We just store it
# here to avoid cluttering up that file.
#
# Windows installer (Inno Setup)
#
if(WIN32)
if(CMAKE_SIZEOF_VOID_P MATCHES 8)
set(INST_NAME ${CMAKE_PROJECT_NAME}64-${VERSION})
set(INST_DEFS -DWIN64)
else()
set(INST_NAME ${CMAKE_PROJECT_NAME}-${VERSION})
endif()
if(MSVC_IDE)
set(INSTALLERDIR "$(OutDir)")
set(BUILDDIRDEF "-DBUILD_DIR=${INSTALLERDIR}\\")
else()
set(INSTALLERDIR .)
set(BUILDDIRDEF "-DBUILD_DIR=")
endif()
set(INST_DEPS vncviewer)
if(BUILD_WINVNC)
set(INST_DEFS ${INST_DEFS} -DBUILD_WINVNC)
set(INST_DEPS ${INST_DEPS} winvnc4 wm_hooks vncconfig)
endif()
if(GNUTLS_FOUND)
set(INST_DEFS ${INST_DEFS} -DHAVE_GNUTLS)
endif()
configure_file(release/tigervnc.iss.in release/tigervnc.iss)
add_custom_target(installer
iscc -o${INSTALLERDIR} ${INST_DEFS} ${BUILDDIRDEF} -F${INST_NAME}
release/tigervnc.iss
DEPENDS ${INST_DEPS}
SOURCES release/tigervnc.iss)
endif() # WIN32
#
# Mac DMG
#
if(APPLE)
set(DEFAULT_OSX_X86_BUILD ${CMAKE_SOURCE_DIR}/osxx86)
set(OSX_X86_BUILD ${DEFAULT_OSX_X86_BUILD} CACHE PATH
"Directory containing 32-bit OS X build to include in universal binaries (default: ${DEFAULT_OSX_X86_BUILD})")
configure_file(release/makemacapp.in release/makemacapp)
configure_file(release/Info.plist.in release/Info.plist)
add_custom_target(dmg sh release/makemacapp
DEPENDS vncviewer
SOURCES release/makemacapp)
add_custom_target(udmg sh release/makemacapp universal
DEPENDS vncviewer
SOURCES release/makemacapp)
endif() # APPLE
#
# Binary tarball
#
if(UNIX)
configure_file(release/maketarball.in release/maketarball)
add_custom_target(tarball sh release/maketarball
DEPENDS vncviewer vncpasswd vncconfig
SOURCES release/maketarball)
add_custom_target(servertarball sh release/maketarball server
DEPENDS vncviewer vncpasswd vncconfig
SOURCES release/maketarball)
endif() #UNIX
#
# Common
#
install(FILES ${CMAKE_SOURCE_DIR}/LICENCE.TXT DESTINATION doc)
install(FILES ${CMAKE_SOURCE_DIR}/README.txt DESTINATION doc)
|