[CoreML][OSS] Integrate with CMake (#64523)
authorTao Xu <taox@fb.com>
Fri, 17 Sep 2021 17:14:40 +0000 (10:14 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 17 Sep 2021 17:32:00 +0000 (10:32 -0700)
commit18fa58c4e91b7ea5a889ba271ccfe56de95cb273
tree4f9d497a6fc990ec123bf916833bcf673594f4b5
parentc1415a0a72a09e16a93bb1900eb1a8541bb448d6
[CoreML][OSS] Integrate with CMake (#64523)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/64523

- Build Pytorch with CoreML delegate - ` USE_PYTORCH_METAL=ON python setup.py install --cmake`
- Build iOS static libs - `IOS_PLATFORM=SIMULATOR USE_COREML_DELEGATE=1  ./scripts/build_ios.sh`
ghstack-source-id: 138324216

Test Plan:
- Test the Helloword example

{F657778559}

Reviewed By: iseeyuan

Differential Revision: D30594041

fbshipit-source-id: 8cece0b2d4b3ef82d3ef4da8c1054919148beb16
CMakeLists.txt
caffe2/CMakeLists.txt
cmake/Summary.cmake
scripts/build_ios.sh
torch/CMakeLists.txt