mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-03 15:55:31 +00:00
cmake: Android expects SDL programs to be built as shared libraries
This commit is contained in:
parent
5abcfdb93e
commit
baaac5cca3
|
@ -11,7 +11,11 @@ set(SDL_TESTS_NEEDS_ESOURCES)
|
|||
|
||||
macro(add_sdl_test_executable TARGET)
|
||||
cmake_parse_arguments(AST "NONINTERACTIVE;NEEDS_RESOURCES" "" "" ${ARGN})
|
||||
if(ANDROID)
|
||||
add_library(${TARGET} SHARED ${AST_UNPARSED_ARGUMENTS})
|
||||
else()
|
||||
add_executable(${TARGET} ${AST_UNPARSED_ARGUMENTS})
|
||||
endif()
|
||||
|
||||
list(APPEND SDL_TEST_EXECUTABLES ${TARGET})
|
||||
if(AST_NONINTERACTIVE)
|
||||
|
|
Loading…
Reference in a new issue