You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 950B

123456789101112131415161718192021222324252627282930313233343536
  1. # Detect a 64-bit build and give that installer a different name
  2. if(CMAKE_SIZEOF_VOID_P MATCHES 8)
  3. set(INST_NAME ${CMAKE_PROJECT_NAME}64-${VERSION})
  4. set(INST_DEFS -DWIN64)
  5. else()
  6. set(INST_NAME ${CMAKE_PROJECT_NAME}-${VERSION})
  7. endif()
  8. if(MSVC_IDE)
  9. set(INSTALLERDIR "$(OutDir)")
  10. set(BUILDDIRDEF "-DBUILD_DIR=${INSTALLERDIR}\\")
  11. else()
  12. set(INSTALLERDIR .)
  13. set(BUILDDIRDEF "-DBUILD_DIR=")
  14. endif()
  15. set(INST_DEPS vncviewer)
  16. if(BUILD_WINVNC)
  17. set(INST_DEFS ${INST_DEFS} -DBUILD_WINVNC)
  18. set(INST_DEPS ${INST_DEPS} winvnc4 wm_hooks vncconfig)
  19. endif()
  20. if(GNUTLS_FOUND AND NOT GNUTLS_STATIC)
  21. set(INST_DEFS ${INST_DEFS})
  22. endif()
  23. configure_file(tigervnc.iss.in tigervnc.iss)
  24. add_custom_target(installer
  25. iscc -o${INSTALLERDIR} ${INST_DEFS} ${BUILDDIRDEF} -F${INST_NAME} tigervnc.iss
  26. DEPENDS ${INST_DEPS}
  27. SOURCES tigervnc.iss)
  28. install(FILES ${CMAKE_SOURCE_DIR}/win/README_BINARY.txt
  29. ${CMAKE_SOURCE_DIR}/LICENCE.txt DESTINATION .)