2011-12-16 12:00:30 +01:00
|
|
|
# package bundler
|
|
|
|
if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
|
|
|
|
if(EXISTS "${CMAKE_ROOT}/Modules/InstallRequiredSystemLibraries.cmake")
|
|
|
|
set(CMAKE_INSTALL_MFC_LIBRARIES 0)
|
|
|
|
set(CMAKE_INSTALL_DEBUG_LIBRARIES 0)
|
2011-12-28 19:07:22 +01:00
|
|
|
if(NOT DEFINED CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS)
|
|
|
|
set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
|
|
|
|
endif()
|
2011-12-16 12:00:30 +01:00
|
|
|
include(${CMAKE_ROOT}/Modules/InstallRequiredSystemLibraries.cmake)
|
|
|
|
endif(EXISTS "${CMAKE_ROOT}/Modules/InstallRequiredSystemLibraries.cmake")
|
|
|
|
|
|
|
|
set(OPJ_PACKAGE_DESCRIPTION_SUMMARY "OpenJPEG - OpenJPEG a JPEG 2000 implementation.")
|
|
|
|
set(OPJ_PACKAGE_CONTACT "openjpeg users <openjpeg@googlegroups.com>")
|
|
|
|
|
|
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${OPJ_PACKAGE_DESCRIPTION_SUMMARY})
|
2012-01-11 17:18:26 +01:00
|
|
|
set(CPACK_PACKAGE_VENDOR "OpenJPEG Team")
|
|
|
|
#set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
|
|
|
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/LICENSE"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/LICENSE.txt" COPYONLY
|
|
|
|
)
|
|
|
|
# For PackageMaker on MacOSX it is important to have a file extension:
|
|
|
|
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_BINARY_DIR}/LICENSE.txt")
|
2011-12-16 12:00:30 +01:00
|
|
|
set(CPACK_PACKAGE_VERSION_MAJOR "${OPENJPEG_VERSION_MAJOR}")
|
|
|
|
set(CPACK_PACKAGE_VERSION_MINOR "${OPENJPEG_VERSION_MINOR}")
|
|
|
|
set(CPACK_PACKAGE_VERSION_PATCH "${OPENJPEG_VERSION_BUILD}")
|
|
|
|
set(CPACK_PACKAGE_INSTALL_DIRECTORY "OpenJPEG ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}")
|
|
|
|
set(CPACK_SOURCE_PACKAGE_FILE_NAME "openjpeg-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
|
|
|
|
|
2012-01-11 13:46:23 +01:00
|
|
|
set(CPACK_BUNDLE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/CMake/opj_logo.icns")
|
2012-01-11 17:18:26 +01:00
|
|
|
set(CPACK_BUNDLE_NAME "OpenJPEG ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}")
|
2012-01-11 12:38:39 +01:00
|
|
|
configure_file(${CMAKE_ROOT}/Templates/AppleInfo.plist
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/opj.plist)
|
|
|
|
SET(CPACK_BUNDLE_PLIST
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/opj.plist)
|
2012-01-11 17:18:26 +01:00
|
|
|
#include(BundleUtilities)
|
2012-01-11 11:18:07 +01:00
|
|
|
|
2011-12-16 12:00:30 +01:00
|
|
|
include(CPack)
|
|
|
|
endiF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
|