0de5451d45f5b8d6fb89d9c72edd130c86992908
[blender.git] / build_files / cmake / packaging.cmake
1 set(PROJECT_DESCRIPTION  "Blender is a very fast and versatile 3D modeller/renderer.")
2 set(PROJECT_COPYRIGHT    "Copyright (C) 2001-2011 Blender Foundation")
3 set(PROJECT_CONTACT      "foundation@blender.org")
4 set(PROJECT_VENDOR       "Blender Foundation")
5 set(ORG_WEBSITE          "www.blender.org")
6
7 set(CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME})
8 set(CPACK_PACKAGE_DESCRIPTION ${PROJECT_DESCRIPTION})
9 set(CPACK_PACKAGE_VENDOR ${PROJECT_VENDOR})
10 set(CPACK_PACKAGE_CONTACT ${PROJECT_CONTACT})
11 set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
12 set(CPACK_PACKAGE_INSTALL_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
13
14 # Force Package Name
15 set(CPACK_PACKAGE_FILE_NAME ${PROJECT_NAME}-${BLENDER_VERSION}-r${BUILD_REV}-${CPACK_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR})
16
17 # RPM packages
18 include(build_files/cmake/RpmBuild.cmake)
19 if(RPMBUILD_FOUND AND NOT WIN32)
20     set(CPACK_GENERATOR "RPM")
21     set(CPACK_SET_DESTDIR TRUE)
22     set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PROJECT_DESCRIPTION}")
23 endif(RPMBUILD_FOUND AND NOT WIN32)
24
25 # Mac Bundle
26 if(APPLE)
27     set(CPACK_GENERATOR "DragNDrop")
28
29     #Libraries are bundled directly
30     set(CPACK_COMPONENT_LIBRARIES_HIDDEN TRUE)
31
32     # Bundle Properties
33     set(MACOSX_BUNDLE_BUNDLE_NAME blender)
34     set(MACOSX_BUNDLE_BUNDLE_VERSION ${BLENDER_VERSION})
35     set(MACOSX_BUNDLE_SHORT_VERSION_STRING ${BLENDER_VERSION})
36     set(MACOSX_BUNDLE_LONG_VERSION_STRING "Version ${BLENDER_VERSION}-r${BUILD_REV}")
37 endif(APPLE)
38
39 set(CPACK_PACKAGE_EXECUTABLES "blender")
40 include(CPack)