assetprocessor_mac.cmake 1.0 KB

1234567891011121314151617181920212223242526
  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. # Set resources directory for app icons
  9. target_sources(AssetProcessor PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/Platform/Mac/Images.xcassets)
  10. set_target_properties(AssetProcessor PROPERTIES
  11. MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Platform/Mac/gui_info.plist
  12. RESOURCE ${CMAKE_CURRENT_SOURCE_DIR}/Platform/Mac/Images.xcassets
  13. XCODE_ATTRIBUTE_ASSETCATALOG_COMPILER_APPICON_NAME AssetProcessorAppIcon
  14. ENTITLEMENT_FILE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/Platform/Mac/AssetProcessorEntitlements.plist
  15. XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER "com.O3DE.AssetProcessor"
  16. )
  17. # Copy the AssetBuilder to the bundle Content/MacOS directory
  18. # The AssetProcessor launches the AssetBuilder next to it in the same executable directory
  19. ly_add_target_files(
  20. TARGETS
  21. AssetProcessor
  22. FILES
  23. $<TARGET_FILE:AssetBuilder>
  24. )