3DS: Install 3dsx
Jeffrey Pfau jeffrey@endrift.com
Thu, 27 Aug 2015 19:30:09 -0700
2 files changed,
5 insertions(+),
3 deletions(-)
M
CMakeLists.txt
→
CMakeLists.txt
@@ -500,9 +500,7 @@ add_subdirectory(${CMAKE_SOURCE_DIR}/src/platform/psp2 ${CMAKE_BINARY_DIR}/psp2)
endif() if(3DS) - add_executable(${BINARY_NAME}.elf ${GUI_SRC}) - target_link_libraries(${BINARY_NAME}.elf ${BINARY_NAME} m ${OS_LIB}) - add_custom_command(TARGET ${BINARY_NAME}.elf POST_BUILD COMMAND ${3DSXTOOL} ${BINARY_NAME}.elf ${BINARY_NAME}.3dsx) + add_subdirectory(${CMAKE_SOURCE_DIR}/src/platform/3ds ${CMAKE_BINARY_DIR}) endif() if(BUILD_PERF)
A
src/platform/3ds/CMakeLists.txt
@@ -0,0 +1,4 @@
+add_executable(${BINARY_NAME}.elf ${GUI_SRC}) +target_link_libraries(${BINARY_NAME}.elf ${BINARY_NAME} m ${OS_LIB}) +add_custom_command(TARGET ${BINARY_NAME}.elf POST_BUILD COMMAND ${3DSXTOOL} ${BINARY_NAME}.elf ${BINARY_NAME}.3dsx) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${BINARY_NAME}.3dsx DESTINATION . COMPONENT ${BINARY_NAME}-3ds)