mirror of
https://github.com/aap/librw.git
synced 2024-11-25 13:15:43 +00:00
Add find_library checks for Switch libraries
Makes sure that required Switch libraries are present before proceeding
This commit is contained in:
parent
06a59173bc
commit
03df7307bb
@ -180,11 +180,15 @@ if(LIBRW_PLATFORM_GL3)
|
||||
endif()
|
||||
|
||||
if(NINTENDO_SWITCH)
|
||||
find_library(SWITCH_EGL_LIBRARY EGL)
|
||||
find_library(SWITCH_GLAPI_LIBRARY glapi)
|
||||
find_library(SWITCH_DRM_NOUVEAU_LIBRARY drm_nouveau)
|
||||
|
||||
target_link_libraries(librw
|
||||
PUBLIC
|
||||
EGL
|
||||
glapi
|
||||
drm_nouveau
|
||||
${SWITCH_EGL_LIBRARY}
|
||||
${SWITCH_GLAPI_LIBRARY}
|
||||
${SWITCH_DRM_NOUVEAU_LIBRARY}
|
||||
)
|
||||
endif()
|
||||
elseif(LIBRW_PLATFORM_D3D9)
|
||||
|
Loading…
Reference in New Issue
Block a user