On Linux, build SDL2 from externals with HIDAPI support

This commit is contained in:
v1993 2021-05-09 18:12:58 +03:00
parent f2b76284ed
commit 648bef235e
No known key found for this signature in database
GPG key ID: 9A30914F19F1D7C8
2 changed files with 18 additions and 11 deletions

View file

@ -49,6 +49,7 @@ target_include_directories(unicorn-headers INTERFACE ./unicorn/include)
if (NOT SDL2_FOUND AND ENABLE_SDL2)
set(SDL_STATIC ON)
set(SDL_SHARED OFF)
set(OPT_DEF_HIDAPI ON)
add_subdirectory(SDL EXCLUDE_FROM_ALL)
add_library(SDL2 ALIAS SDL2-static)
endif()