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 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # This file is included from the top-level CMakeLists.txt. We just store it
  2. # here to avoid cluttering up that file.
  3. #
  4. # Windows installer (Inno Setup)
  5. #
  6. if(WIN32)
  7. if(CMAKE_SIZEOF_VOID_P MATCHES 8)
  8. set(INST_SUFFIX 64)
  9. set(INST_DEFS -DWIN64)
  10. endif()
  11. configure_file(tigervnc.iss.in tigervnc.iss)
  12. add_custom_target(installer
  13. iscc -o. ${INST_DEFS} -F${CMAKE_PROJECT_NAME}${INST_SUFFIX}-${VERSION} tigervnc.iss
  14. DEPENDS vncviewer
  15. SOURCES tigervnc.iss)
  16. if(BUILD_WINVNC)
  17. configure_file(winvnc.iss.in winvnc.iss)
  18. add_custom_target(winvnc_installer
  19. iscc -o. ${INST_DEFS} -F${CMAKE_PROJECT_NAME}${INST_SUFFIX}-winvnc-${VERSION} winvnc.iss
  20. DEPENDS winvnc4 wm_hooks vncconfig
  21. SOURCES winvnc.iss)
  22. endif()
  23. endif() # WIN32
  24. #
  25. # Mac DMG
  26. #
  27. if(APPLE)
  28. set(DEFAULT_OSX_X86_BUILD ${CMAKE_SOURCE_DIR}/osxx86)
  29. set(OSX_X86_BUILD ${DEFAULT_OSX_X86_BUILD} CACHE PATH
  30. "Directory containing 32-bit OS X build to include in universal binaries (default: ${DEFAULT_OSX_X86_BUILD})")
  31. configure_file(makemacapp.in makemacapp)
  32. configure_file(Info.plist.in Info.plist)
  33. add_custom_target(dmg sh makemacapp
  34. DEPENDS vncviewer
  35. SOURCES makemacapp)
  36. add_custom_target(udmg sh makemacapp universal
  37. DEPENDS vncviewer
  38. SOURCES makemacapp)
  39. endif() # APPLE
  40. #
  41. # Binary tarball
  42. #
  43. if(UNIX)
  44. configure_file(maketarball.in maketarball)
  45. set(TARBALL_DEPENDS vncviewer vncpasswd vncconfig)
  46. if(BUILD_JAVA)
  47. set(TARBALL_DEPENDS ${TARBALL_DEPENDS} java)
  48. endif()
  49. add_custom_target(tarball bash maketarball
  50. DEPENDS ${TARBALL_DEPENDS}
  51. SOURCES maketarball)
  52. add_custom_target(servertarball bash maketarball server
  53. DEPENDS ${TARBALL_DEPENDS}
  54. SOURCES maketarball)
  55. endif() #UNIX
  56. #
  57. # Common
  58. #
  59. install(FILES ${CMAKE_SOURCE_DIR}/LICENCE.TXT DESTINATION ${CMAKE_INSTALL_FULL_DOCDIR})
  60. install(FILES ${CMAKE_SOURCE_DIR}/README.rst DESTINATION ${CMAKE_INSTALL_FULL_DOCDIR})