blob: 917813038e3f48bd3f0c9885915ef2caa07b865b (
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
|
# Detect a 64-bit build and give that installer a different name
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 AND NOT GNUTLS_STATIC)
set(INST_DEFS ${INST_DEFS})
endif()
configure_file(tigervnc.iss.in tigervnc.iss)
add_custom_target(installer
iscc -o${INSTALLERDIR} ${INST_DEFS} ${BUILDDIRDEF} -F${INST_NAME} tigervnc.iss
DEPENDS ${INST_DEPS}
SOURCES tigervnc.iss)
install(FILES ${CMAKE_SOURCE_DIR}/win/README_BINARY.txt
${CMAKE_SOURCE_DIR}/LICENCE.txt DESTINATION .)
|