Add an experimental CMake build system as a possible replacement for SCons. Only...
[dolphin.git] / Source / Core / InputCommon / CMakeLists.txt
blob7b205fa2e86b5e5ee2363b57c4d019273d259ce5
1 set(SRCS        Src/ControllerEmu.cpp
2                         Src/InputConfig.cpp
3                         #Src/UDPWiimote.cpp
4                         #Src/UDPWrapper.cpp
5                         Src/ControllerInterface/ControllerInterface.cpp)
7 if(WIN32)
8         set(SRCS        ${SRCS}
9                                 Src/ControllerInterface/DInput/DInput.cpp
10                                 Src/ControllerInterface/DInput/DInputJoystick.cpp
11                                 Src/ControllerInterface/DInput/DInputKeyboardMouse.cpp
12                                 Src/ControllerInterface/SDL/SDL.cpp
13                                 Src/ControllerInterface/XInput/XInput.cpp)
14 elseif(APPLE)
15         set(SRCS        ${SRCS}
16                                 Src/ControllerInterface/OSX/OSX.mm
17                                 Src/ControllerInterface/OSX/OSXKeyboard.mm
18                                 Src/ControllerInterface/OSX/OSXMouse.mm
19                                 Src/ControllerInterface/SDL/SDL.cpp)
20 elseif(X11_FOUND)
21         set(SRCS        ${SRCS}
22                                 Src/ControllerInterface/SDL/SDL.cpp
23                                 Src/ControllerInterface/Xlib/Xlib.cpp)
24 endif()
26 add_library(inputcommon ${SRCS})