DRC | d22efe4 | 2011-06-24 05:26:43 +0000 | [diff] [blame] | 1 | # This file is included from the top-level CMakeLists.txt. We just store it |
| 2 | # here to avoid cluttering up that file. |
| 3 | |
Pierre Ossman | 69314c7 | 2011-03-08 12:18:13 +0000 | [diff] [blame] | 4 | # Detect a 64-bit build and give that installer a different name |
| 5 | if(CMAKE_SIZEOF_VOID_P MATCHES 8) |
Pierre Ossman | 481b03e | 2011-03-03 12:32:15 +0000 | [diff] [blame] | 6 | set(INST_NAME ${CMAKE_PROJECT_NAME}64-${VERSION}) |
| 7 | set(INST_DEFS -DWIN64) |
| 8 | else() |
| 9 | set(INST_NAME ${CMAKE_PROJECT_NAME}-${VERSION}) |
| 10 | endif() |
| 11 | |
| 12 | if(MSVC_IDE) |
| 13 | set(INSTALLERDIR "$(OutDir)") |
| 14 | set(BUILDDIRDEF "-DBUILD_DIR=${INSTALLERDIR}\\") |
| 15 | else() |
| 16 | set(INSTALLERDIR .) |
| 17 | set(BUILDDIRDEF "-DBUILD_DIR=") |
| 18 | endif() |
| 19 | |
| 20 | set(INST_DEPS vncviewer) |
| 21 | |
| 22 | if(BUILD_WINVNC) |
| 23 | set(INST_DEFS ${INST_DEFS} -DBUILD_WINVNC) |
| 24 | set(INST_DEPS ${INST_DEPS} winvnc4 wm_hooks vncconfig) |
| 25 | endif() |
| 26 | |
Adam Tkac | f586b84 | 2011-04-27 11:20:18 +0000 | [diff] [blame] | 27 | if(GNUTLS_FOUND) |
| 28 | set(INST_DEFS ${INST_DEFS} -DHAVE_GNUTLS) |
Adam Tkac | ed2ab6d | 2011-04-27 11:07:57 +0000 | [diff] [blame] | 29 | endif() |
| 30 | |
DRC | d22efe4 | 2011-06-24 05:26:43 +0000 | [diff] [blame] | 31 | configure_file(win/installer/tigervnc.iss.in tigervnc.iss) |
Pierre Ossman | 481b03e | 2011-03-03 12:32:15 +0000 | [diff] [blame] | 32 | |
| 33 | add_custom_target(installer |
| 34 | iscc -o${INSTALLERDIR} ${INST_DEFS} ${BUILDDIRDEF} -F${INST_NAME} tigervnc.iss |
| 35 | DEPENDS ${INST_DEPS} |
| 36 | SOURCES tigervnc.iss) |
| 37 | |
| 38 | install(FILES ${CMAKE_SOURCE_DIR}/win/README_BINARY.txt |
| 39 | ${CMAKE_SOURCE_DIR}/LICENCE.txt DESTINATION .) |