Switch: Install targets
Vicki Pfau vi@endrift.com
Sat, 15 Sep 2018 16:22:25 -0700
2 files changed,
6 insertions(+),
0 deletions(-)
M
CMakeLists.txt
→
CMakeLists.txt
@@ -1040,6 +1040,8 @@ elseif(WII)
set(CPACK_COMPONENTS_ALL ${BINARY_NAME} ${BINARY_NAME}-wii) elseif(PSP2) set(CPACK_COMPONENTS_ALL ${BINARY_NAME} ${BINARY_NAME}-psp2) + elseif(SWITCH) + set(CPACK_COMPONENTS_ALL ${BINARY_NAME} ${BINARY_NAME}-switch) endif() endif()@@ -1064,6 +1066,8 @@ elseif(PSP2)
cpack_add_component(${BINARY_NAME}-psp2 GROUP base) elseif(WII) cpack_add_component(${BINARY_NAME}-wii GROUP base) +elseif(SWITCH) + cpack_add_component(${BINARY_NAME}-switch GROUP base) endif() if(BUILD_QT)
M
src/platform/switch/CMakeLists.txt
→
src/platform/switch/CMakeLists.txt
@@ -49,3 +49,5 @@
add_custom_target(${BINARY_NAME}.nro ALL ${ELF2NRO} ${BINARY_NAME}.elf ${BINARY_NAME}.nro --romfs=romfs.bin --nacp=control.nacp --icon="${CMAKE_CURRENT_SOURCE_DIR}/icon.jpg" DEPENDS ${BINARY_NAME}.elf control.nacp ${CMAKE_CURRENT_SOURCE_DIR}/icon.jpg romfs.bin) + +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${BINARY_NAME}.nro DESTINATION . COMPONENT ${BINARY_NAME}-switch)