mirror of https://github.com/encounter/SDL.git
Fix enabling tests on platforms without testnative support
This commit is contained in:
parent
318b5577f9
commit
c71ee68b8a
|
@ -105,7 +105,7 @@ if(APPLE)
|
||||||
testutils.c)
|
testutils.c)
|
||||||
elseif(WINDOWS)
|
elseif(WINDOWS)
|
||||||
add_executable(testnative testnative.c testnativew32.c testutils.c)
|
add_executable(testnative testnative.c testnativew32.c testutils.c)
|
||||||
elseif(UNIX)
|
elseif(SDL_X11)
|
||||||
add_executable(testnative testnative.c testnativex11.c testutils.c)
|
add_executable(testnative testnative.c testnativex11.c testutils.c)
|
||||||
target_link_libraries(testnative X11)
|
target_link_libraries(testnative X11)
|
||||||
endif()
|
endif()
|
||||||
|
@ -180,7 +180,6 @@ SET(ALL_TESTS
|
||||||
testmessage
|
testmessage
|
||||||
testmouse
|
testmouse
|
||||||
testmultiaudio
|
testmultiaudio
|
||||||
testnative
|
|
||||||
testoffscreen
|
testoffscreen
|
||||||
testoverlay2
|
testoverlay2
|
||||||
testplatform
|
testplatform
|
||||||
|
@ -225,6 +224,10 @@ set(NONINTERACTIVE
|
||||||
testver
|
testver
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(WINDOWS OR APPLE OR SDL_X11)
|
||||||
|
list(APPEND ALL_TESTS testnative)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(LINUX)
|
if(LINUX)
|
||||||
list(APPEND ALL_TESTS testevdev)
|
list(APPEND ALL_TESTS testevdev)
|
||||||
list(APPEND NONINTERACTIVE testevdev)
|
list(APPEND NONINTERACTIVE testevdev)
|
||||||
|
@ -292,12 +295,14 @@ else()
|
||||||
testaudiohotplug
|
testaudiohotplug
|
||||||
testmultiaudio
|
testmultiaudio
|
||||||
testime
|
testime
|
||||||
testnative
|
|
||||||
testiconv
|
testiconv
|
||||||
testoverlay2
|
testoverlay2
|
||||||
teststreaming
|
teststreaming
|
||||||
testviewport
|
testviewport
|
||||||
)
|
)
|
||||||
|
if(WINDOWS OR APPLE OR SDL_X11)
|
||||||
|
list(APPEND NEEDS_RESOURCES testnative)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(PSP)
|
if(PSP)
|
||||||
|
|
Loading…
Reference in New Issue