CPackConfiguration.cmake 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Plex Media Player")
  2. set(CPACK_PACKAGE_VENDOR "Plex")
  3. set(CPACK_PACKAGE_NAME "Plex Media Player")
  4. set(CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR})
  5. set(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR})
  6. set(CPACK_PACKAGE_VERSION_PATCH ${VERSION_NANO})
  7. if(APPLE)
  8. set(CPACK_SYSTEM_NAME "macosx-x86_64")
  9. elseif(WIN32)
  10. include(FetchDependencies)
  11. set(CPACK_SYSTEM_NAME ${ARCHSTR})
  12. else()
  13. set(CPACK_SYSTEM_NAME linux-${CMAKE_HOST_SYSTEM_PROCESSOR})
  14. endif()
  15. set(CPACK_PACKAGE_FILE_NAME "PlexMediaPlayer-${VERSION_STRING}-${CPACK_SYSTEM_NAME}")
  16. set(CPACK_SOURCE_PACKAGE_FILE_NAME "PlexMediaPlayer-${VERSION_STRING}-src")
  17. set(CPACK_PACKAGE_INSTALL_DIRECTORY "PlexMediaPlayer")
  18. set(CPACK_STRIP_FILES 1)
  19. if(WIN32)
  20. include(WindowsInstaller)
  21. install(FILES ${CMAKE_SOURCE_DIR}/bundle/win/qt.conf DESTINATION .)
  22. else(WIN32)
  23. set(CPACK_GENERATOR "ZIP")
  24. if(APPLE)
  25. set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY 0)
  26. endif(APPLE)
  27. configure_file(${CMAKE_SOURCE_DIR}/CMakeModules/CPackGeneratedConfig.cmake.in ${CMAKE_BINARY_DIR}/CPackGeneratedConfig.cmake)
  28. set(CPACK_PROJECT_CONFIG_FILE ${CMAKE_BINARY_DIR}/CPackGeneratedConfig.cmake)
  29. include(CPack)
  30. cpack_add_component(Core DISPLAY_NAME "Plex Media Player" DESCRIPTION "Plex Media Player (Core Application)" REQUIRED)
  31. endif(WIN32)