summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-08-16 19:02:40 +0200
committererorcun <erorcunerorcun@hotmail.com.tr>2021-08-16 19:02:40 +0200
commit8641e9d0bb123580a7a8b701a72c1a813503bc9a (patch)
treebe236ef46d2f585da1c266597637151fc80ae55d /CMakeLists.txt
parentFix ped comments playing at full volume behind the wall (diff)
parentUse svcGetInfo definitions from libnx (diff)
downloadre3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.tar
re3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.tar.gz
re3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.tar.bz2
re3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.tar.lz
re3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.tar.xz
re3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.tar.zst
re3-8641e9d0bb123580a7a8b701a72c1a813503bc9a.zip
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt15
1 files changed, 14 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5396d3b4..adf3c29f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,15 +1,26 @@
-cmake_minimum_required(VERSION 3.8)
+cmake_minimum_required(VERSION 3.14)
set(EXECUTABLE re3)
set(PROJECT RE3)
project(${EXECUTABLE} C CXX)
+set(${PROJECT}_AUTHOR "${PROJECT} Team")
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
include(GetGitRevisionDescription)
get_git_head_revision(GIT_REFSPEC GIT_SHA1 "ALLOW_LOOKING_ABOVE_CMAKE_SOURCE_DIR")
message(STATUS "Building ${CMAKE_PROJECT_NAME} GIT SHA1: ${GIT_SHA1}")
+if(NINTENDO_SWITCH)
+ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/nx")
+ include(NXFunctions)
+endif()
+
+if(NOT COMMAND re3_platform_target)
+ function(re3_platform_target)
+ endfunction()
+endif()
+
if(WIN32)
set(${PROJECT}_AUDIOS "OAL" "MSS")
else()
@@ -66,6 +77,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)")