You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.1 KiB
CMake
35 lines
1.1 KiB
CMake
#
|
|
# 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@")
|