use a toolchain file for iOS instead of setting the necessary CMake variables in SFML

This commit is contained in:
tlein 2017-08-25 00:02:50 -05:00 committed by Lukas Dürrenberger
parent 30ec3edd8b
commit bba5808717
4 changed files with 218 additions and 15 deletions

View file

@ -66,16 +66,16 @@ elseif(SFML_OS_ANDROID)
endif()
# find external libraries
if(NOT SFML_OS_ANDROID)
if(SFML_OS_ANDROID OR SFML_OS_IOS)
if(NOT SFML_OS_IOS)
find_package(OpenAL REQUIRED)
find_host_package(OpenAL REQUIRED)
endif()
find_package(Vorbis REQUIRED)
find_package(FLAC REQUIRED)
else()
find_host_package(OpenAL REQUIRED)
find_host_package(Vorbis REQUIRED)
find_host_package(FLAC REQUIRED)
else()
find_package(OpenAL REQUIRED)
find_package(Vorbis REQUIRED)
find_package(FLAC REQUIRED)
endif()
if(NOT SFML_OS_IOS)

View file

@ -114,7 +114,7 @@ if(SFML_OPENGL_ES AND SFML_OS_LINUX)
find_package(GLES REQUIRED)
include_directories(${EGL_INCLUDE_DIR} ${GLES_INCLUDE_DIR})
endif()
if(SFML_OS_ANDROID)
if(SFML_OS_ANDROID OR SFML_OS_IOS)
find_host_package(Freetype REQUIRED)
else()
find_package(Freetype REQUIRED)