mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
Extend commit 844d79916a (cmake --build: Add support for driving Xcode
workspaces, 2025-06-02) to support multiple `--target` arguments.
`xcodebuild -scheme` cannot be repeated in a single call, so call it
multiple times instead.
Issue: #26958
Co-Authored-By: Craig Scott <craig.scott@crascit.com>
11 lines
335 B
CMake
11 lines
335 B
CMake
enable_language(C)
|
|
add_executable(main main.c)
|
|
add_custom_target(custom1)
|
|
add_custom_target(custom2)
|
|
file(WRITE "${CMAKE_BINARY_DIR}/XcodeWorkspace.xcworkspace/contents.xcworkspacedata" [[
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<Workspace version = "1.0">
|
|
<FileRef location = "container:XcodeWorkspace.xcodeproj"/>
|
|
</Workspace>
|
|
]])
|