Add Nintendo Switch support through CMake

This commit is contained in:
Adrian Graber
2021-06-09 23:52:51 +02:00
parent 5b4f91b161
commit 7301893152
3 changed files with 46 additions and 6 deletions

View File

@ -100,6 +100,8 @@ if(LIBRW_INSTALL)
set(os "-apple")
elseif(UNIX)
set(os "-linux")
elseif(NINTENDO_SWITCH)
set(os "-switch")
else()
set(compiler "-UNK")
message(WARNING "Unknown os. Created cpack package will be wrong. (override using cpack -P)")