[iOS] Improved support for examples, removed the need for a toolchain file
This commit is contained in:
parent
4e8e1629d1
commit
239921b456
7 changed files with 20 additions and 203 deletions
|
@ -18,8 +18,13 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
|||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
||||
set(SFML_OS_FREEBSD 1)
|
||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
if(IOS)
|
||||
set(SFML_OS_IOS 1)
|
||||
if(IOS)
|
||||
set(SFML_OS_IOS 1)
|
||||
|
||||
# set the target framework and platforms
|
||||
set(CMAKE_OSX_SYSROOT "iphoneos6.1") # todo set by user variable? auto-detected?
|
||||
set(CMAKE_OSX_ARCHITECTURES "armv6;armv7;i386")
|
||||
set(CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos;-iphonesimulator")
|
||||
|
||||
# help the compiler detection script below
|
||||
set(CMAKE_COMPILER_IS_GNUCXX 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue