1234567891011121314151617181920212223242526272829303132333435 |
- #
- # Copyright (c) Contributors to the Open 3D Engine Project.
- # For complete copyright and license terms please see the LICENSE at the root of this distribution.
- #
- # SPDX-License-Identifier: Apache-2.0 OR MIT
- #
- #
- cmake_path(SET file_path "${CMAKE_INSTALL_PREFIX}/@install_relative_binaries_path@/@runtime_output_filename@")
- cmake_path(GET file_path EXTENSION LAST_ONLY file_ext)
- if(file_ext STREQUAL .app)
- file(INSTALL @CMAKE_BINARY_DIR@/runtime_install/$<CONFIG>/BinariesInstallPath.setreg
- DESTINATION ${file_path}/Contents/MacOS/Registry
- )
- if(EXISTS "${file_path}/Contents/Frameworks/Python.framework")
- codesign_python_framework_binaries("${file_path}/Contents/Frameworks/Python.framework")
- endif()
- else()
- find_program(LY_INSTALL_NAME_TOOL install_name_tool)
- if (NOT LY_INSTALL_NAME_TOOL)
- message(FATAL_ERROR "Unable to locate 'install_name_tool'")
- endif()
- execute_process(COMMAND
- ${LY_INSTALL_NAME_TOOL} -add_rpath @loader_path ${file_path})
- endif()
- codesign_file("${file_path}" "@entitlement_file@")
|