[iOS] Improved support for examples, removed the need for a toolchain file

This commit is contained in:
Laurent Gomila 2013-08-29 23:45:13 +02:00 committed by Jonathan De Wachter
parent 4e8e1629d1
commit 239921b456
7 changed files with 20 additions and 203 deletions

View file

@ -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)