cmake: fix Nintendo Switch support

This commit is contained in:
Anonymous Maarten
2021-06-22 19:47:36 +02:00
parent 829cf6b700
commit 83ba0bd615
13 changed files with 56 additions and 44 deletions

View File

@ -14,7 +14,7 @@ elseif(NINTENDO_SWITCH)
set(LIBRW_PLATFORMS "NULL" "GL3")
set(LIBRW_PLATFORM_GL3_REQUIRES_OPENGL OFF)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/nxtoolchain")
include(CheckNXFunctions)
include(NXFunctions)
else()
set(LIBRW_PLATFORMS "NULL" "GL3" "PS2")
set(LIBRW_PLATFORM_GL3_REQUIRES_OPENGL ON)
@ -41,6 +41,11 @@ if(LIBRW_PLATFORM_PS2)
enable_language(DSM)
endif()
if(NOT COMMAND librw_platform_target)
function(librw_platform_target)
endfunction()
endif()
option(LIBRW_TOOLS "Build librw tools" ON)
option(LIBRW_INSTALL "Install librw files" OFF)