ENDIF()
ENDIF(CMAKE_COMPILER_IS_GNUCC)
+INCLUDE(CheckIncludeFiles)
IF(UNIX AND NOT ANDROID)
FIND_PACKAGE(X11 REQUIRED)
LIST(APPEND LIBS ${X11_LIBRARIES})
ENDIF()
LIST(APPEND LIBS ${X11_Xxf86vm_LIB})
ENDIF()
+ IF(X11_Xinput_FOUND)
+ CHECK_INCLUDE_FILES("${X11_Xinput_INCLUDE_PATH}/X11/extensions/XInput2.h" HAVE_X11_EXTENSIONS_XINPUT2_H)
+ LIST(APPEND LIBS ${X11_Xinput_LIB})
+ ENDIF()
ENDIF()
IF(ANDROID)
# -landroid for ANativeWindow
LIST(APPEND LIBS android log)
ENDIF()
-INCLUDE(CheckIncludeFiles)
INCLUDE(CheckFunctionExists)
INCLUDE(CheckTypeSize)
CHECK_INCLUDE_FILES(sys/types.h HAVE_SYS_TYPES_H)
#cmakedefine HAVE_X11_EXTENSIONS_XF86VMODE_H
#cmakedefine HAVE_X11_EXTENSIONS_XRANDR_H
+#cmakedefine HAVE_X11_EXTENSIONS_XINPUT2_H
#cmakedefine HAVE_SYS_TYPES_H
#cmakedefine HAVE_UNISTD_H
#cmakedefine HAVE_SYS_TIME_H