2010-11-01 09:47:02 -06:00
|
|
|
set(SRCS Src/ControllerEmu.cpp
|
|
|
|
Src/InputConfig.cpp
|
2010-11-14 07:02:16 -07:00
|
|
|
Src/UDPWiimote.cpp
|
|
|
|
Src/UDPWrapper.cpp
|
2013-06-16 18:07:10 -06:00
|
|
|
Src/ControllerInterface/ControllerInterface.cpp
|
2013-06-13 21:09:55 -06:00
|
|
|
Src/ControllerInterface/Device.cpp
|
|
|
|
Src/ControllerInterface/ExpressionParser.cpp)
|
2010-11-01 09:47:02 -06:00
|
|
|
|
|
|
|
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)
|
2010-11-16 18:03:39 -07:00
|
|
|
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
2010-11-01 09:47:02 -06:00
|
|
|
set(SRCS ${SRCS}
|
|
|
|
Src/ControllerInterface/OSX/OSX.mm
|
|
|
|
Src/ControllerInterface/OSX/OSXKeyboard.mm
|
2011-02-07 08:51:38 -07:00
|
|
|
Src/ControllerInterface/OSX/OSXJoystick.mm
|
2010-11-01 09:47:02 -06:00
|
|
|
Src/ControllerInterface/SDL/SDL.cpp)
|
|
|
|
elseif(X11_FOUND)
|
|
|
|
set(SRCS ${SRCS}
|
|
|
|
Src/ControllerInterface/SDL/SDL.cpp
|
|
|
|
Src/ControllerInterface/Xlib/Xlib.cpp)
|
2013-07-20 22:50:50 -06:00
|
|
|
if(XINPUT2_FOUND)
|
2013-07-10 00:49:58 -06:00
|
|
|
set(SRCS ${SRCS}
|
|
|
|
Src/ControllerInterface/Xlib/XInput2.cpp)
|
|
|
|
endif()
|
2013-04-14 22:02:53 -06:00
|
|
|
elseif(ANDROID)
|
|
|
|
set(SRCS ${SRCS}
|
2013-06-18 06:09:20 -06:00
|
|
|
Src/ControllerInterface/Android/Android.cpp)
|
2010-11-01 09:47:02 -06:00
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(inputcommon ${SRCS})
|