diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index bbc3df506..f022d878d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -158,6 +158,7 @@ if(NOT PSP) endif() if(PSP) + # Build EBOOT files if building for PSP set(BUILD_EBOOT ${NEEDS_RESOURCES} testoffscreen @@ -215,32 +216,32 @@ if(PSP) ICON_PATH NULL BACKGROUND_PATH NULL PREVIEW_PATH NULL - BUILD_PRX - ENC_PRX ) add_custom_command( TARGET ${APP} POST_BUILD COMMAND ${CMAKE_COMMAND} -E make_directory - $/psp-${APP} + $/sdl-${APP} ) add_custom_command( TARGET ${APP} POST_BUILD COMMAND ${CMAKE_COMMAND} -E rename $/EBOOT.PBP - $/psp-${APP}/EBOOT.PBP - ) - add_custom_command( - TARGET ${APP} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E rename - $/${APP} - $/psp-${APP}/${APP} - ) - add_custom_command( - TARGET ${APP} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E rename - $/${APP}.prx - $/psp-${APP}/${APP}.prx + $/sdl-${APP}/EBOOT.PBP ) + if(${BUILD_PRX}) + add_custom_command( + TARGET ${APP} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy + $/${APP} + $/sdl-${APP}/${APP} + ) + add_custom_command( + TARGET ${APP} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E rename + $/${APP}.prx + $/sdl-${APP}/${APP}.prx + ) + endif() add_custom_command( TARGET ${APP} POST_BUILD COMMAND ${CMAKE_COMMAND} -E remove