summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAdrian Graber <adrian@adriangraber.com>2021-07-04 18:52:48 +0200
committerAdrian Graber <adrian@adriangraber.com>2021-07-13 00:49:13 +0200
commit28f266302fbeea2d75d5a62de651d464ab380798 (patch)
treee9ae6bc810489c798e6bb3f27d75afe803c7f9ae /CMakeLists.txt
parentVanilla config for Windows and win-x86 only (diff)
downloadre3-28f266302fbeea2d75d5a62de651d464ab380798.tar
re3-28f266302fbeea2d75d5a62de651d464ab380798.tar.gz
re3-28f266302fbeea2d75d5a62de651d464ab380798.tar.bz2
re3-28f266302fbeea2d75d5a62de651d464ab380798.tar.lz
re3-28f266302fbeea2d75d5a62de651d464ab380798.tar.xz
re3-28f266302fbeea2d75d5a62de651d464ab380798.tar.zst
re3-28f266302fbeea2d75d5a62de651d464ab380798.zip
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5396d3b4..b687124a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,6 +12,10 @@ message(STATUS "Building ${CMAKE_PROJECT_NAME} GIT SHA1: ${GIT_SHA1}")
if(WIN32)
set(${PROJECT}_AUDIOS "OAL" "MSS")
+elseif(NINTENDO_SWITCH)
+ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/nx")
+ include(NXFunctions)
+ set(${PROJECT}_AUDIOS "OAL")
else()
set(${PROJECT}_AUDIOS "OAL")
endif()
@@ -66,6 +70,8 @@ if(${PROJECT}_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)")