all repos — mgba @ 63c0dc0d2b069afa9c461200c974ac02c0c48c66

mGBA Game Boy Advance Emulator

3DS: Install 3dsx
Jeffrey Pfau jeffrey@endrift.com
Thu, 27 Aug 2015 19:30:09 -0700
commit

63c0dc0d2b069afa9c461200c974ac02c0c48c66

parent

6c85374b5e8bc07f0605bec8f5d6e6a56b738a6c

2 files changed, 5 insertions(+), 3 deletions(-)

jump to
M CMakeLists.txtCMakeLists.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)