cmake: For SDL, disable rlgl_standalone

This commit is contained in:
Rob Loach 2024-03-07 12:46:17 -05:00
parent 30604080ef
commit b9ba864924
No known key found for this signature in database
GPG Key ID: 627C60834A74A21A

View File

@ -113,6 +113,9 @@ elseif ("${PLATFORM}" STREQUAL "DRM")
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/others/rlgl_standalone.c)
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/others/raylib_opengl_interop.c)
elseif ("${PLATFORM}" STREQUAL "SDL")
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/others/rlgl_standalone.c)
endif ()
include_directories(BEFORE SYSTEM others/external/include)
@ -145,11 +148,5 @@ foreach (example_source ${example_sources})
endif ()
endforeach ()
# For SDL, have rlgl_standalone link the glfw dependency.
if ("${PLATFORM}" STREQUAL "SDL")
find_package(glfw3 3.3 REQUIRED)
target_link_libraries(rlgl_standalone glfw)
endif()
# Copy all of the resource files to the destination
file(COPY ${example_resources} DESTINATION "resources/")