2010-11-01 15:47:02 +00:00
|
|
|
set(SRCS Src/ControllerEmu.cpp
|
|
|
|
Src/InputConfig.cpp
|
2010-11-14 14:02:16 +00:00
|
|
|
Src/UDPWiimote.cpp
|
|
|
|
Src/UDPWrapper.cpp
|
2010-11-01 15:47:02 +00: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-17 01:03:39 +00:00
|
|
|
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
2010-11-01 15:47:02 +00:00
|
|
|
set(SRCS ${SRCS}
|
|
|
|
Src/ControllerInterface/OSX/OSX.mm
|
|
|
|
Src/ControllerInterface/OSX/OSXKeyboard.mm
|
2011-02-07 15:51:38 +00:00
|
|
|
Src/ControllerInterface/OSX/OSXJoystick.mm
|
2010-11-01 15:47:02 +00: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})
|