PackagingPreBuild_windows.cmake 586 B

123456789101112131415161718
  1. #
  2. # Copyright (c) Contributors to the Open 3D Engine Project.
  3. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. #
  5. # SPDX-License-Identifier: Apache-2.0 OR MIT
  6. #
  7. #
  8. file(REAL_PATH "${CPACK_SOURCE_DIR}/.." LY_ROOT_FOLDER)
  9. include(${LY_ROOT_FOLDER}/cmake/Platform/Common/PackagingPreBuild_common.cmake)
  10. include(${CPACK_CODESIGN_SCRIPT})
  11. if(NOT CPACK_UPLOAD_URL) # Skip signing if we are not uploading the package
  12. return()
  13. endif()
  14. set(_cpack_wix_out_dir ${CPACK_TOPLEVEL_DIRECTORY})
  15. ly_sign_binaries("${_cpack_wix_out_dir}" "exePath")