# This file will be configured to contain variables for CPack. These variables
# should be set in the CMake list file of the project before CPack module is
# included. The list of available CPACK_xxx variables and their associated
# documentation may be obtained using
#  cpack --help-variable-list
#
# Some variables are common to all generators (e.g. CPACK_PACKAGE_NAME)
# and some are specific to a generator
# (e.g. CPACK_NSIS_EXTRA_INSTALL_COMMANDS). The generator specific variables
# usually begin with CPACK_<GENNAME>_xxxx.


set(CPACK_BINARY_7Z "OFF")
set(CPACK_BINARY_BUNDLE "")
set(CPACK_BINARY_CYGWIN "")
set(CPACK_BINARY_DEB "")
set(CPACK_BINARY_DRAGNDROP "")
set(CPACK_BINARY_FREEBSD "")
set(CPACK_BINARY_IFW "OFF")
set(CPACK_BINARY_NSIS "ON")
set(CPACK_BINARY_NUGET "OFF")
set(CPACK_BINARY_OSXX11 "")
set(CPACK_BINARY_PACKAGEMAKER "")
set(CPACK_BINARY_PRODUCTBUILD "")
set(CPACK_BINARY_RPM "")
set(CPACK_BINARY_STGZ "")
set(CPACK_BINARY_TBZ2 "")
set(CPACK_BINARY_TGZ "")
set(CPACK_BINARY_TXZ "")
set(CPACK_BINARY_TZ "")
set(CPACK_BINARY_WIX "OFF")
set(CPACK_BINARY_ZIP "OFF")
set(CPACK_BUILD_SOURCE_DIRS "C:/Users/Darkon/Documents/Code/Soft/C++/GGPOPLUSR;C:/Users/Darkon/Documents/Code/Soft/C++/GGPOPLUSR/out/build/x64-Debug")
set(CPACK_CMAKE_GENERATOR "Ninja")
set(CPACK_COMPONENT_UNSPECIFIED_HIDDEN "TRUE")
set(CPACK_COMPONENT_UNSPECIFIED_REQUIRED "TRUE")
set(CPACK_EXE_TARGET_NAME "Launcher")
set(CPACK_GENERATOR "7Z;ZIP")
set(CPACK_IGNORE_FILES "/CVS/;/\\.svn/;/\\.bzr/;/\\.hg/;/\\.git/;\\.swp\$;\\.#;/#")
set(CPACK_INSTALLED_DIRECTORIES "C:/Users/Darkon/Documents/Code/Soft/C++/GGPOPLUSR;/")
set(CPACK_INSTALL_CMAKE_PROJECTS "")
set(CPACK_INSTALL_PREFIX "C:/Users/Darkon/Documents/Code/Soft/C++/GGPOPLUSR/out/install/x64-Debug")
set(CPACK_MODULE_PATH "C:/Users/Darkon/Documents/Code/Soft/C++/GGPOPLUSR/cmake")
set(CPACK_NSIS_DISPLAY_NAME "GGPOPLUSR")
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL "ON")
set(CPACK_NSIS_EXECUTABLES_DIRECTORY ".")
set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "
  !include LogicLib.nsh
  ExecWait '$INSTDIR\\redist\\vc_redist.x86.exe /install /passive /norestart'

  Var /GLOBAL ggxxacprdir
  ReadRegStr $ggxxacprdir HKLM \"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Steam App 348550\" \"InstallLocation\"

  \${If} $ggxxacprdir == ''
    SetRegView 64
    ReadRegStr $ggxxacprdir HKLM \"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Steam App 348550\" \"InstallLocation\"
    \${If} $ggxxacprdir == ''
      MessageBox MB_OK 'Could not find GGXXACPR installation directory. Please make sure GGXXACPR is installed, and move $INSTDIR\\GGPO.dll to your GGXXACPR install folder.'
    \${EndIf}
  \${EndIf}

  \${If} $ggxxacprdir != ''
    CopyFiles $INSTDIR\\GGPO.dll $ggxxacprdir\\GGPO.dll
    Delete $INSTDIR\\GGPO.dll
  \${EndIf}

  IfFileExists $INSTDIR\\config.vdf.bak exists notexists
  exists:
    DetailPrint \"A backup of the configuration file has been found and will be restored.\"
    Delete $INSTDIR\\config.vdf
    Rename $INSTDIR\\config.vdf.bak $INSTDIR\\config.vdf
    Goto next
  notexists:
  next:
")
set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "
  MessageBox MB_YESNO \"Do you want to delete your GGPOPLUSR configuration file?\" /SD IDNO IDYES del IDNO nodel
  del:
    DetailPrint \"The GGPOPLUSR configuration file will be deleted.\"
    Goto afterconfdelete
  nodel:
    DetailPrint \"The GGPOPLUSR configuration file will be backed up.\"
    Delete $INSTDIR\\config.vdf.bak
    Rename $INSTDIR\\config.vdf $INSTDIR\\config.vdf.bak
  afterconfdelete:

  Delete \"$DESKTOP\\GGPOPLUSR Launcher.lnk\"
")
set(CPACK_NSIS_HELP_LINK "https://github.com/adanducci/GGPOPLUSR")
set(CPACK_NSIS_INSTALLED_ICON_NAME "Launcher.exe")
set(CPACK_NSIS_INSTALLER_ICON_CODE "")
set(CPACK_NSIS_INSTALLER_MUI_ICON_CODE "")
set(CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES64")
set(CPACK_NSIS_MENU_LINKS "Launcher.exe;Start GGPOPLUSR")
set(CPACK_NSIS_MODIFY_PATH "OFF")
set(CPACK_NSIS_MUI_ICON "C:/Users/Darkon/Documents/Code/Soft/C++/GGPOPLUSR/resources/rc/Launcher.ico")
set(CPACK_NSIS_PACKAGE_NAME "GGPOPLUSR")
set(CPACK_NSIS_URL_INFO_ABOUT "https://github.com/adanducci/GGPOPLUSR")
set(CPACK_OUTPUT_CONFIG_FILE "C:/Users/Darkon/Documents/Code/Soft/C++/GGPOPLUSR/out/build/x64-Debug/CPackConfig.cmake")
set(CPACK_PACKAGE_DEFAULT_LOCATION "/")
set(CPACK_PACKAGE_DESCRIPTION_FILE "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.15/Templates/CPack.GenericDescription.txt")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "GGPOPLUSR A netplay implementation and quality-of-life tool bundle for the Steam release of Guilty Gear XX Accent Core +R.")
set(CPACK_PACKAGE_FILE_NAME "GGPOPLUSR-0.0.0.0-Source")
set(CPACK_PACKAGE_HOMEPAGE_URL "https://github.com/adanducci/GGPOPLUSR")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "GGPOPLUSR")
set(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "GGPOPLUSR")
set(CPACK_PACKAGE_NAME "GGPOPLUSR")
set(CPACK_PACKAGE_RELOCATABLE "true")
set(CPACK_PACKAGE_VENDOR "The GGPOPLUSR Dev Team")
set(CPACK_PACKAGE_VERSION "0.0.0.0")
set(CPACK_PACKAGE_VERSION_MAJOR "0")
set(CPACK_PACKAGE_VERSION_MINOR "0")
set(CPACK_PACKAGE_VERSION_PATCH "0")
set(CPACK_RESOURCE_FILE_LICENSE "C:/Users/Darkon/Documents/Code/Soft/C++/GGPOPLUSR/README.md")
set(CPACK_RESOURCE_FILE_README "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.15/Templates/CPack.GenericDescription.txt")
set(CPACK_RESOURCE_FILE_WELCOME "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.15/Templates/CPack.GenericWelcome.txt")
set(CPACK_RPM_PACKAGE_SOURCES "ON")
set(CPACK_SET_DESTDIR "OFF")
set(CPACK_SOURCE_7Z "ON")
set(CPACK_SOURCE_CYGWIN "")
set(CPACK_SOURCE_GENERATOR "7Z;ZIP")
set(CPACK_SOURCE_IGNORE_FILES "/CVS/;/\\.svn/;/\\.bzr/;/\\.hg/;/\\.git/;\\.swp\$;\\.#;/#")
set(CPACK_SOURCE_INSTALLED_DIRECTORIES "C:/Users/Darkon/Documents/Code/Soft/C++/GGPOPLUSR;/")
set(CPACK_SOURCE_OUTPUT_CONFIG_FILE "C:/Users/Darkon/Documents/Code/Soft/C++/GGPOPLUSR/out/build/x64-Debug/CPackSourceConfig.cmake")
set(CPACK_SOURCE_PACKAGE_FILE_NAME "GGPOPLUSR-0.0.0.0-Source")
set(CPACK_SOURCE_RPM "")
set(CPACK_SOURCE_TBZ2 "")
set(CPACK_SOURCE_TGZ "")
set(CPACK_SOURCE_TOPLEVEL_TAG "win64-Source")
set(CPACK_SOURCE_TXZ "")
set(CPACK_SOURCE_TZ "")
set(CPACK_SOURCE_ZIP "ON")
set(CPACK_STRIP_FILES "")
set(CPACK_SYSTEM_NAME "win64")
set(CPACK_TOPLEVEL_TAG "win64-Source")
set(CPACK_WIX_SIZEOF_VOID_P "8")

if(NOT CPACK_PROPERTIES_FILE)
  set(CPACK_PROPERTIES_FILE "C:/Users/Darkon/Documents/Code/Soft/C++/GGPOPLUSR/out/build/x64-Debug/CPackProperties.cmake")
endif()

if(EXISTS ${CPACK_PROPERTIES_FILE})
  include(${CPACK_PROPERTIES_FILE})
endif()
