mirror of
https://github.com/aap/librw.git
synced 2024-11-25 21:25:42 +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()
|
endif()
|
||||||
|
|
||||||
if(NINTENDO_SWITCH)
|
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
|
target_link_libraries(librw
|
||||||
PUBLIC
|
PUBLIC
|
||||||
EGL
|
${SWITCH_EGL_LIBRARY}
|
||||||
glapi
|
${SWITCH_GLAPI_LIBRARY}
|
||||||
drm_nouveau
|
${SWITCH_DRM_NOUVEAU_LIBRARY}
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
elseif(LIBRW_PLATFORM_D3D9)
|
elseif(LIBRW_PLATFORM_D3D9)
|
||||||
|
Loading…
Reference in New Issue
Block a user