CMakeLists.txt
changeset 13039 bfed06214c2a
parent 13006 4a410f099040
child 13079 82de37dd809d
     1.1 --- a/CMakeLists.txt	Mon Aug 26 17:43:01 2019 -0700
     1.2 +++ b/CMakeLists.txt	Tue Aug 27 11:38:43 2019 +0200
     1.3 @@ -933,6 +933,10 @@
     1.4      list(APPEND EXTRA_LIBS ${ANDROID_DL_LIBRARY} ${ANDROID_LOG_LIBRARY} ${ANDROID_LIBRARY_LIBRARY})
     1.5      add_definitions(-DGL_GLEXT_PROTOTYPES)
     1.6  
     1.7 +    if (HAVE_HIDAPI)
     1.8 +        list(APPEND EXTRA_LIBS hidapi)
     1.9 +    endif()
    1.10 +
    1.11      #enable gles
    1.12      if(VIDEO_OPENGLES)
    1.13        set(SDL_VIDEO_OPENGL_EGL 1)
    1.14 @@ -1863,6 +1867,10 @@
    1.15    set_target_properties(SDL2main PROPERTIES DEBUG_POSTFIX ${SDL_CMAKE_DEBUG_POSTFIX})
    1.16  endif()
    1.17  
    1.18 +if (ANDROID AND HAVE_HIDAPI)
    1.19 +  set(_INSTALL_LIBS ${_INSTALL_LIBS} "hidapi")
    1.20 +endif()
    1.21 +
    1.22  if(SDL_SHARED)
    1.23    add_library(SDL2 SHARED ${SOURCE_FILES} ${VERSION_SOURCES})
    1.24    if(APPLE)