dolphin/Source/Core/InputCommon/CMakeLists.txt
Max Eliaser 9fbc5ff27c Add X11 XInput2 input plugin, including MPX and with support for axis controls.
Based on the original XLib plugin, and thus shares some of its warts.
2013-07-20 13:58:02 -08:00

36 lines
1.1 KiB
CMake

set(SRCS Src/ControllerEmu.cpp
Src/InputConfig.cpp
Src/UDPWiimote.cpp
Src/UDPWrapper.cpp
Src/ControllerInterface/ControllerInterface.cpp
Src/ControllerInterface/Device.cpp
Src/ControllerInterface/ExpressionParser.cpp)
if(WIN32)
set(SRCS ${SRCS}
Src/ControllerInterface/DInput/DInput.cpp
Src/ControllerInterface/DInput/DInputJoystick.cpp
Src/ControllerInterface/DInput/DInputKeyboardMouse.cpp
Src/ControllerInterface/SDL/SDL.cpp
Src/ControllerInterface/XInput/XInput.cpp)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(SRCS ${SRCS}
Src/ControllerInterface/OSX/OSX.mm
Src/ControllerInterface/OSX/OSXKeyboard.mm
Src/ControllerInterface/OSX/OSXJoystick.mm
Src/ControllerInterface/SDL/SDL.cpp)
elseif(X11_FOUND)
set(SRCS ${SRCS}
Src/ControllerInterface/SDL/SDL.cpp
Src/ControllerInterface/Xlib/Xlib.cpp)
if(X11_Xinput2_FOUND)
set(SRCS ${SRCS}
Src/ControllerInterface/Xlib/XInput2.cpp)
endif()
elseif(ANDROID)
set(SRCS ${SRCS}
Src/ControllerInterface/Android/Android.cpp)
endif()
add_library(inputcommon ${SRCS})