https://github.com/yageek/cmake-xcodebuild
A CMake toolchain file helping to build fat-binary for apple platforms.
https://github.com/yageek/cmake-xcodebuild
cmake ios xcodebuild
Last synced: 9 months ago
JSON representation
A CMake toolchain file helping to build fat-binary for apple platforms.
- Host: GitHub
- URL: https://github.com/yageek/cmake-xcodebuild
- Owner: yageek
- Created: 2018-01-28T04:56:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-28T05:32:55.000Z (almost 8 years ago)
- Last Synced: 2025-01-26T02:49:05.577Z (11 months ago)
- Topics: cmake, ios, xcodebuild
- Language: CMake
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cmake-xcodebuild
(WIP)
A CMake toolchain file helping to build fat-binary for apple platforms.
## Usage
You can customize the build using three variables:
- `XCODEBUILD_PLATFORM`: (Required) Select the target platform: `iOS`, `iOSSimulator`
`macOS`, `tvOS`, `tvOSSimulator`, `watchOS` or `watchOSSimulator`
- `XCODEBUILD_PLATFORM_VERSION`: (Optional) The version of the SDK to use. Otherwise cmake will
try to detect the last one
- `BITCODE_ENABLED`: (Optional) Generate bitcode or not
## Simple usage
```
cmake .. -DCMAKE_TOOLCHAIN_FILE=cmake/xcodebuild.cmake -DXCODEBUILD_PLATFORM=iOS
```