Switch: Install targets

This commit is contained in:
Vicki Pfau 2018-09-15 16:22:25 -07:00
parent b86d3f9fc3
commit 42b3647511
2 changed files with 6 additions and 0 deletions

View File

@ -1040,6 +1040,8 @@ if(DISTBUILD)
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)

View File

@ -49,3 +49,5 @@ add_custom_command(OUTPUT romfs.bin
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)