include("${CMAKE_CURRENT_LIST_DIR}/Version.cmake")
if (DEFINED ENV{INSTALL_DIR})
    set(CPACK_PACKAGING_INSTALL_PREFIX $ENV{INSTALL_DIR})
else (DEFINED ENV{INSTALL_DIR})
    if (UNIX)
        set(CPACK_PACKAGING_INSTALL_PREFIX "/usr/local/BPF/")
    endif (UNIX)
endif (DEFINED ENV{INSTALL_DIR})
set(CPACK_PACKAGE_NAME "BPF")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "BPF")
set(CPACK_PACKAGE_FILE_NAME "BPF")
set(CPACK_PACKAGE_VENDOR "BlockProject 3D")
set(CPACK_PACKAGE_DESCRIPTION "BlockProject 3D Framework")
set(CPACK_PACKAGE_SUMMARY "BlockProject 3D Framework")
set(CPACK_IFW_PACKAGE_TITLE "BlockProject 3D Framework")
set(CPACK_IFW_PRODUCT_URL "https://github.com/BlockProject3D/Framework")
set(CPACK_IFW_PACKAGE_WINDOW_ICON "${CMAKE_CURRENT_LIST_DIR}/CMakes/logo_white.png")
set(CPACK_IFW_PACKAGE_LOGO "${CMAKE_CURRENT_LIST_DIR}/CMakes/logo_white.png")
set(CPACK_IFW_PACKAGE_NAME ${CPACK_PACKAGE_NAME})
set(CPACK_DEBIAN_PACKAGE_SOURCE "https://github.com/BlockProject3D/Framework")
set(CPACK_PACKAGE_VERSION_MAJOR ${BP_VERSION_MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${BP_VERSION_MINOR})
set(CPACK_PACKAGE_VERSION_PATCH 0)
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_LIST_DIR}/BPF/LICENSE.txt")
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_LIST_DIR}/README.txt")
set(CPACK_INSTALLED_DIRECTORIES "${CMAKE_CURRENT_LIST_DIR}/BPF/;${CPACK_PACKAGING_INSTALL_PREFIX}/")
set(CPACK_PACKAGE_CONTACT "https://github.com/BlockProject3D/Framework")
set(CPACK_WIX_UPGRADE_GUID "CFAE9897-F201-4AE2-8110-B3459A8DDB4E")
set(CPACK_RESOURCE_FILE_WELCOME "${CMAKE_CURRENT_LIST_DIR}/README.txt")
set(CPACK_PACKAGE_RELOCATABLE TRUE)
if (DEFINED ENV{ARCH})
    set(CPACK_RPM_PACKAGE_ARCHITECTURE $ENV{ARCH})
    if ($ENV{ARCH} MATCHES "64")
        set(CPACK_WIX_SIZEOF_VOID_P 8)
    else ($ENV{ARCH} MATCHES "64")
        set(CPACK_WIX_SIZEOF_VOID_P 4)
    endif($ENV{ARCH} MATCHES "64")
else (DEFINED ENV{ARCH})
    set(CPACK_WIX_SIZEOF_VOID_P 8)
endif (DEFINED ENV{ARCH})
