Only copy resources to PSP eboot directory if it exists
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index ab93f70..0dc7507 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -134,37 +134,31 @@ endif()
file(GLOB RESOURCE_FILES *.bmp *.wav *.hex moose.dat utf8.txt)
file(COPY ${RESOURCE_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
-set(NEEDS_RESOURCES
- testscale
- testrendercopyex
- controllermap
- testyuv
- testgamecontroller
- testshape
- testshader
- testspriteminimal
- testautomation
- testcustomcursor
- testrendertarget
- testsprite2
- loopwave
- loopwavequeue
- testresample
- testaudiohotplug
- testmultiaudio
- testime
- testiconv
- testoverlay2
- teststreaming
- testviewport
-)
-if(NOT PSP)
- set(NEEDS_RESOURCES ${NEEDS_RESOURCES} testnative)
-endif()
-
if(PSP)
- # Build EBOOT files if building for PSP
- set(BUILD_EBOOT
+ set(NEEDS_RESOURCES
+ testscale
+ testrendercopyex
+ controllermap
+ testyuv
+ testgamecontroller
+ testshape
+ testshader
+ testspriteminimal
+ testautomation
+ testrendertarget
+ testsprite2
+ loopwave
+ loopwavequeue
+ testresample
+ testaudiohotplug
+ testmultiaudio
+ testiconv
+ testoverlay2
+ teststreaming
+ testviewport
+ )
+else()
+ set(NEEDS_RESOURCES
testscale
testrendercopyex
controllermap
@@ -174,6 +168,7 @@ if(PSP)
testshader
testspriteminimal
testautomation
+ testcustomcursor
testrendertarget
testsprite2
loopwave
@@ -181,6 +176,19 @@ if(PSP)
testresample
testaudiohotplug
testmultiaudio
+ testime
+ testnative
+ testiconv
+ testoverlay2
+ teststreaming
+ testviewport
+ )
+endif()
+
+if(PSP)
+ # Build EBOOT files if building for PSP
+ set(BUILD_EBOOT
+ ${NEEDS_RESOURCES}
testoffscreen
testbounds
testgl2