CPackConfiguration.cmake 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Plex Media Player")
  2. set(CPACK_PACKAGE_VENDOR "Plex")
  3. set(CPACK_PACKAGE_NAMW "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. set(CPACK_SYSTEM_NAME "windows-x64")
  11. else()
  12. set(CPACK_SYSTEM_NAME linux-${CMAKE_HOST_SYSTEM_PROCESSOR})
  13. endif()
  14. set(CPACK_PACKAGE_FILE_NAME "PlexMediaPlayer-${VERSION_STRING}-${CPACK_SYSTEM_NAME}")
  15. set(CPACK_SOURCE_PACKAGE_FILE_NAME "PlexMediaPlayer-${VERSION_STRING}-src")
  16. set(CPACK_PACKAGE_INSTALL_DIRECTORY "PlexMediaPlayer")
  17. set(CPACK_STRIP_FILES 1)
  18. if(WIN32)
  19. include(WindowsInstaller)
  20. install(FILES ${CMAKE_SOURCE_DIR}/bundle/win/qt.conf DESTINATION .)
  21. else(WIN32)
  22. set(CPACK_GENERATOR "ZIP")
  23. if(APPLE)
  24. set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY 0)
  25. endif(APPLE)
  26. configure_file(${CMAKE_SOURCE_DIR}/CMakeModules/CPackGeneratedConfig.cmake.in ${CMAKE_BINARY_DIR}/CPackGeneratedConfig.cmake)
  27. set(CPACK_PROJECT_CONFIG_FILE ${CMAKE_BINARY_DIR}/CPackGeneratedConfig.cmake)
  28. include(CPack)
  29. cpack_add_component(Core DISPLAY_NAME "Plex Media Player" DESCRIPTION "Plex Media Player (Core Application)" REQUIRED)
  30. endif(WIN32)