File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -399,12 +399,11 @@ if(PSP)
399
399
endif ()
400
400
401
401
if (N3DS )
402
- set (ROMFS_DIR "${CMAKE_CURRENT_BINARY_DIR} /romfs" )
403
- file (COPY ${RESOURCE_FILES} DESTINATION "${ROMFS_DIR} " )
404
-
405
402
foreach (APP IN LISTS SDL_TEST_EXECUTABLES )
406
403
get_target_property (TARGET_BINARY_DIR ${APP} BINARY_DIR )
404
+ set (ROMFS_DIR "${TARGET_BINARY_DIR} /sdl-${APP} " )
407
405
set (SMDH_FILE "${TARGET_BINARY_DIR} /${APP} .smdh" )
406
+ file (MAKE_DIRECTORY ${ROMFS_DIR} )
408
407
ctr_generate_smdh ("${SMDH_FILE} "
409
408
NAME "SDL-${APP} "
410
409
DESCRIPTION "SDL2 Test suite"
@@ -461,7 +460,7 @@ add_custom_target(copy-sdl-test-resources
461
460
)
462
461
463
462
foreach (APP IN LISTS SDL_TESTS_NEEDS_RESOURCES )
464
- if (PSP OR PS2 )
463
+ if (PSP OR PS2 OR N3DS )
465
464
foreach (RESOURCE_FILE ${RESOURCE_FILES} )
466
465
add_custom_command (TARGET ${APP} POST_BUILD COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${RESOURCE_FILE} $< TARGET_FILE_DIR:${APP} > /sdl-${APP} )
467
466
endforeach ()
You can’t perform that action at this time.
0 commit comments