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.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. configure_file(makemacapp.in makemacapp)
  29. configure_file(Info.plist.in Info.plist)
  30. add_custom_target(dmg sh makemacapp
  31. DEPENDS vncviewer
  32. SOURCES makemacapp)
  33. endif() # APPLE
  34. #
  35. # Binary tarball
  36. #
  37. if(UNIX)
  38. configure_file(maketarball.in maketarball)
  39. set(TARBALL_DEPENDS vncviewer vncpasswd vncconfig)
  40. if(BUILD_JAVA)
  41. set(TARBALL_DEPENDS ${TARBALL_DEPENDS} java)
  42. endif()
  43. add_custom_target(tarball bash maketarball
  44. DEPENDS ${TARBALL_DEPENDS})
  45. add_custom_target(servertarball bash maketarball server
  46. DEPENDS ${TARBALL_DEPENDS})
  47. endif() #UNIX
  48. #
  49. # Common
  50. #
  51. install(FILES ${CMAKE_SOURCE_DIR}/LICENCE.TXT DESTINATION ${CMAKE_INSTALL_FULL_DOCDIR})
  52. install(FILES ${CMAKE_SOURCE_DIR}/README.rst DESTINATION ${CMAKE_INSTALL_FULL_DOCDIR})