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
|
2010-11-01 09:47:02 -06:00
|
|
|
Src/ControllerInterface/ControllerInterface.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)
|
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)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_library(inputcommon ${SRCS})
|