CMakeLists.txt
changeset 13039 bfed06214c2a
parent 13006 4a410f099040
child 13079 82de37dd809d
equal deleted inserted replaced
13038:b5f5c317e652 13039:bfed06214c2a
   931     find_library(ANDROID_LOG_LIBRARY log)
   931     find_library(ANDROID_LOG_LIBRARY log)
   932     find_library(ANDROID_LIBRARY_LIBRARY android)
   932     find_library(ANDROID_LIBRARY_LIBRARY android)
   933     list(APPEND EXTRA_LIBS ${ANDROID_DL_LIBRARY} ${ANDROID_LOG_LIBRARY} ${ANDROID_LIBRARY_LIBRARY})
   933     list(APPEND EXTRA_LIBS ${ANDROID_DL_LIBRARY} ${ANDROID_LOG_LIBRARY} ${ANDROID_LIBRARY_LIBRARY})
   934     add_definitions(-DGL_GLEXT_PROTOTYPES)
   934     add_definitions(-DGL_GLEXT_PROTOTYPES)
   935 
   935 
       
   936     if (HAVE_HIDAPI)
       
   937         list(APPEND EXTRA_LIBS hidapi)
       
   938     endif()
       
   939 
   936     #enable gles
   940     #enable gles
   937     if(VIDEO_OPENGLES)
   941     if(VIDEO_OPENGLES)
   938       set(SDL_VIDEO_OPENGL_EGL 1)
   942       set(SDL_VIDEO_OPENGL_EGL 1)
   939       set(HAVE_VIDEO_OPENGLES TRUE)
   943       set(HAVE_VIDEO_OPENGLES TRUE)
   940       set(SDL_VIDEO_OPENGL_ES 1)
   944       set(SDL_VIDEO_OPENGL_ES 1)
  1861 set(_INSTALL_LIBS "SDL2main")
  1865 set(_INSTALL_LIBS "SDL2main")
  1862 if (NOT ANDROID)
  1866 if (NOT ANDROID)
  1863   set_target_properties(SDL2main PROPERTIES DEBUG_POSTFIX ${SDL_CMAKE_DEBUG_POSTFIX})
  1867   set_target_properties(SDL2main PROPERTIES DEBUG_POSTFIX ${SDL_CMAKE_DEBUG_POSTFIX})
  1864 endif()
  1868 endif()
  1865 
  1869 
       
  1870 if (ANDROID AND HAVE_HIDAPI)
       
  1871   set(_INSTALL_LIBS ${_INSTALL_LIBS} "hidapi")
       
  1872 endif()
       
  1873 
  1866 if(SDL_SHARED)
  1874 if(SDL_SHARED)
  1867   add_library(SDL2 SHARED ${SOURCE_FILES} ${VERSION_SOURCES})
  1875   add_library(SDL2 SHARED ${SOURCE_FILES} ${VERSION_SOURCES})
  1868   if(APPLE)
  1876   if(APPLE)
  1869     set_target_properties(SDL2 PROPERTIES
  1877     set_target_properties(SDL2 PROPERTIES
  1870       MACOSX_RPATH 1
  1878       MACOSX_RPATH 1