[cmake] Add BUNDLE DESTINATION for runtime binaries (#11718)
These are needed for cross compiling to iOS, which requires building app
bundles.
Part of https://github.com/iree-org/iree/discussions/11716
diff --git a/build_tools/cmake/iree_cc_binary.cmake b/build_tools/cmake/iree_cc_binary.cmake
index 30b233d..a793004 100644
--- a/build_tools/cmake/iree_cc_binary.cmake
+++ b/build_tools/cmake/iree_cc_binary.cmake
@@ -146,12 +146,14 @@
RENAME ${_RULE_NAME}
COMPONENT ${_RULE_NAME}
RUNTIME DESTINATION bin
+ BUNDLE DESTINATION bin
EXCLUDE_FROM_ALL)
else()
install(TARGETS ${_NAME}
RENAME ${_RULE_NAME}
COMPONENT ${_RULE_NAME}
- RUNTIME DESTINATION bin)
+ RUNTIME DESTINATION bin
+ BUNDLE DESTINATION bin)
endif()
# Setup RPATH if on a Unix-like system. We have two use cases that we are
diff --git a/build_tools/embed_data/CMakeLists.txt b/build_tools/embed_data/CMakeLists.txt
index a721514..3654581 100644
--- a/build_tools/embed_data/CMakeLists.txt
+++ b/build_tools/embed_data/CMakeLists.txt
@@ -11,7 +11,8 @@
install(TARGETS generate_embed_data
COMPONENT generate_embed_data
- RUNTIME DESTINATION bin)
+ RUNTIME DESTINATION bin
+ BUNDLE DESTINATION bin)
iree_c_embed_data(
NAME