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 @@ -366,12 +366,11 @@ if(PSP)
366
366
endif ()
367
367
368
368
if (N3DS )
369
- set (ROMFS_DIR "${CMAKE_CURRENT_BINARY_DIR} /romfs" )
370
- file (COPY ${RESOURCE_FILES} DESTINATION "${ROMFS_DIR} " )
371
-
372
369
foreach (APP IN LISTS SDL_TEST_EXECUTABLES )
373
370
get_target_property (TARGET_BINARY_DIR ${APP} BINARY_DIR )
371
+ set (ROMFS_DIR "${TARGET_BINARY_DIR} /sdl-${APP} " )
374
372
set (SMDH_FILE "${TARGET_BINARY_DIR} /${APP} .smdh" )
373
+ file (MAKE_DIRECTORY ${ROMFS_DIR} )
375
374
ctr_generate_smdh ("${SMDH_FILE} "
376
375
NAME "SDL-${APP} "
377
376
DESCRIPTION "SDL2 Test suite"
@@ -428,7 +427,7 @@ add_custom_target(copy-sdl-test-resources
428
427
)
429
428
430
429
foreach (APP IN LISTS SDL_TESTS_NEEDS_RESOURCES )
431
- if (PSP OR PS2 )
430
+ if (PSP OR PS2 OR N3DS )
432
431
foreach (RESOURCE_FILE ${RESOURCE_FILES} )
433
432
add_custom_command (TARGET ${APP} POST_BUILD COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${RESOURCE_FILE} $< TARGET_FILE_DIR:${APP} > /sdl-${APP} )
434
433
endforeach ()
You can’t perform that action at this time.
0 commit comments