Spilly
Spilly

Reputation: 1079

How do you specify a universal iOS application when building through CMake?

When I build my app for iOS using cmake it only outputs an iPhone app, not a universal app, which my source is written for. Looking through the cmake documentation, I don't see any mention of how to specify that I want to build a universal or iPad only application. How do you specify a universal iOS application when building through CMake?

Upvotes: 1

Views: 1079

Answers (2)

user2288008
user2288008

Reputation:

add_executable(foo ...)
set_target_properties(
    foo PROPERTIES XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "1,2"
)

Upvotes: 6

David Andreoletti
David Andreoletti

Reputation: 4881

set_property (TARGET ${MYTARGET} PROPERTY XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "iPhone/iPad")

Upvotes: -1

Related Questions