iOS opengles extensions imports
This commit is contained in:
parent
070ab4c693
commit
c550fbf229
1 changed files with 21 additions and 3 deletions
|
|
@ -38,6 +38,12 @@ set(raylib_sources
|
|||
rtextures.c
|
||||
)
|
||||
|
||||
if (${PLATFORM} STREQUAL "iOS")
|
||||
list(APPEND raylib_sources
|
||||
rcore_ios_main.m
|
||||
)
|
||||
endif()
|
||||
|
||||
# <root>/cmake/GlfwImport.cmake handles the details around the inclusion of glfw
|
||||
if (NOT ${PLATFORM} MATCHES "Web")
|
||||
include(GlfwImport)
|
||||
|
|
@ -104,6 +110,11 @@ target_link_libraries(raylib PUBLIC ${LIBS_PUBLIC})
|
|||
# and you will be able to select more build options
|
||||
include(CompileDefinitions)
|
||||
|
||||
if (${PLATFORM} STREQUAL "iOS")
|
||||
target_compile_definitions(raylib PRIVATE GLES_SILENCE_DEPRECATION=1)
|
||||
target_compile_options(raylib PRIVATE -Wno-deprecated-declarations)
|
||||
endif()
|
||||
|
||||
# Registering include directories
|
||||
target_include_directories(raylib
|
||||
PUBLIC
|
||||
|
|
|
|||
Loading…
Reference in a new issue