# ------------------------------------------------------------------------------
# Packaging with MacOS X PackageMaker
# ------------------------------------------------------------------------------
#
# Important: Set variables using set(... PARENT_SCOPE), so that the scope of the
# definition extends to the parent scope


# -- Set PackageMaker-specific variables ---------------------------------------

set(CPACK_RESOURCE_FILE_README
    "${CPACK_PACKAGE_DESCRIPTION_FILE}" PARENT_SCOPE)
set(CPACK_RESOURCE_FILE_LICENSE
    "${CMAKE_SOURCE_DIR}/LICENSE" PARENT_SCOPE)
set(CPACK_RESOURCE_FILE_WELCOME
    "${CMAKE_CURRENT_SOURCE_DIR}/Welcome.html" PARENT_SCOPE)
set(CPACK_OSX_PACKAGE_VERSION "10.5" PARENT_SCOPE)
#set(CPACK_PACKAGE_DEFAULT_LOCATION "/usr/local/madlib/Versions/${MADLIB_VERSION_STRING}" PARENT_SCOPE)
#set(CPACK_PACKAGING_INSTALL_PREFIX "/" PARENT_SCOPE)

# ------------------------------------------------------------------------------
# Packaging with MacOS X PackageMaker
# ------------------------------------------------------------------------------
#
# Important: Set variables using set(... PARENT_SCOPE), so that the scope of the
# definition extends to the parent scope


# -- Set PackageMaker-specific variables ---------------------------------------

set(CPACK_RESOURCE_FILE_README
    "${CPACK_PACKAGE_DESCRIPTION_FILE}" PARENT_SCOPE)
set(CPACK_RESOURCE_FILE_LICENSE
    "${CMAKE_SOURCE_DIR}/licenses/MADlib.txt" PARENT_SCOPE)
set(CPACK_RESOURCE_FILE_WELCOME
    "${CMAKE_CURRENT_SOURCE_DIR}/Welcome.html" PARENT_SCOPE)
set(CPACK_OSX_PACKAGE_VERSION "10.5" PARENT_SCOPE)
#set(CPACK_PACKAGE_DEFAULT_LOCATION "/usr/local/madlib/Versions/${MADLIB_VERSION_STRING}" PARENT_SCOPE)
#set(CPACK_PACKAGING_INSTALL_PREFIX "/" PARENT_SCOPE)

Use .txt for cpack license
Packagemaker: Use .txt for cpack license
