summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdrian Graber <adrian@adriangraber.com>2021-07-12 02:27:45 +0200
committerAdrian Graber <adrian@adriangraber.com>2021-07-13 00:50:49 +0200
commit5cab196718d94c1ddfe1ddda0490a639cac7fde0 (patch)
treeb543d8e0291ef591d85519e786d6f63255fca218 /src
parentMove assets to dedicated folder and redefine GLFW mappings for Switch (diff)
downloadre3-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 'src')
-rw-r--r--src/CMakeLists.txt25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 425f2315..8dac5a3a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -156,27 +156,4 @@ if(${PROJECT}_INSTALL)
endif()
endif()
-# Build Nintendo Switch binaries
-if(NINTENDO_SWITCH)
- # Needed for OpenAL-Soft
- target_link_libraries(${EXECUTABLE} PRIVATE
- SDL2
- )
-
- nx_generate_nacp (${EXECUTABLE}.nacp
- NAME "${EXECUTABLE}"
- AUTHOR "${EXECUTABLE} Team"
- VERSION "1.0.0-${GIT_SHA1}"
- )
-
- nx_create_nro(${EXECUTABLE}
- NACP ${EXECUTABLE}.nacp
- ICON "${PROJECT_SOURCE_DIR}/res/images/logo_256.jpg"
- )
-
- if(${PROJECT}_INSTALL)
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${EXECUTABLE}.nro"
- DESTINATION "."
- )
- endif()
-endif()
+re3_platform_target(${EXECUTABLE} INSTALL)