diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-08-14 17:09:07 +0200 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-08-14 17:09:07 +0200 |
commit | 4a5f7464c14f214eadfeb177705902777f52d326 (patch) | |
tree | eef8b7dc86e83f8fdb0ba27a5abedd62892c51e3 /CMakeLists.txt | |
parent | ginput script (diff) | |
parent | Fix artifact path (diff) | |
download | re3-4a5f7464c14f214eadfeb177705902777f52d326.tar re3-4a5f7464c14f214eadfeb177705902777f52d326.tar.gz re3-4a5f7464c14f214eadfeb177705902777f52d326.tar.bz2 re3-4a5f7464c14f214eadfeb177705902777f52d326.tar.lz re3-4a5f7464c14f214eadfeb177705902777f52d326.tar.xz re3-4a5f7464c14f214eadfeb177705902777f52d326.tar.zst re3-4a5f7464c14f214eadfeb177705902777f52d326.zip |
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e8689b38..5d29a834 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,15 +1,27 @@ -cmake_minimum_required(VERSION 3.8) +cmake_minimum_required(VERSION 3.14) set(EXECUTABLE reVC) set(PROJECT REVC) 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 reVC_platform_target) + function(reVC_platform_target) + endfunction() +endif() + if(WIN32) set(${PROJECT}_AUDIOS "OAL" "MSS") else() @@ -66,6 +78,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)") |