diff options
author | Adrian Graber <adrian@adriangraber.com> | 2021-07-12 02:27:45 +0200 |
---|---|---|
committer | Adrian Graber <adrian@adriangraber.com> | 2021-07-13 00:50:49 +0200 |
commit | 5cab196718d94c1ddfe1ddda0490a639cac7fde0 (patch) | |
tree | b543d8e0291ef591d85519e786d6f63255fca218 /CMakeLists.txt | |
parent | Move assets to dedicated folder and redefine GLFW mappings for Switch (diff) | |
download | re3-5cab196718d94c1ddfe1ddda0490a639cac7fde0.tar re3-5cab196718d94c1ddfe1ddda0490a639cac7fde0.tar.gz re3-5cab196718d94c1ddfe1ddda0490a639cac7fde0.tar.bz2 re3-5cab196718d94c1ddfe1ddda0490a639cac7fde0.tar.lz re3-5cab196718d94c1ddfe1ddda0490a639cac7fde0.tar.xz re3-5cab196718d94c1ddfe1ddda0490a639cac7fde0.tar.zst re3-5cab196718d94c1ddfe1ddda0490a639cac7fde0.zip |
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8bfe3656..adf3c29f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,18 +4,25 @@ 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(WIN32) - set(${PROJECT}_AUDIOS "OAL" "MSS") -elseif(NINTENDO_SWITCH) +if(NINTENDO_SWITCH) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/nx") include(NXFunctions) - set(${PROJECT}_AUDIOS "OAL") +endif() + +if(NOT COMMAND re3_platform_target) + function(re3_platform_target) + endfunction() +endif() + +if(WIN32) + set(${PROJECT}_AUDIOS "OAL" "MSS") else() set(${PROJECT}_AUDIOS "OAL") endif() |