diff options
| author | 2017-01-21 17:33:48 +0200 | |
|---|---|---|
| committer | 2017-03-01 23:30:57 +0200 | |
| commit | 51b1c1f211bf8112eba845256bd52cbd36a5932a (patch) | |
| tree | ad685410ae7b83df0474b9de206f99b68e5be398 /src/input_common/CMakeLists.txt | |
| parent | InputCommon: add AnalogFromButton (diff) | |
| download | yuzu-51b1c1f211bf8112eba845256bd52cbd36a5932a.tar.gz yuzu-51b1c1f211bf8112eba845256bd52cbd36a5932a.tar.xz yuzu-51b1c1f211bf8112eba845256bd52cbd36a5932a.zip | |
InputCommon: add SDL joystick support
Diffstat (limited to 'src/input_common/CMakeLists.txt')
| -rw-r--r-- | src/input_common/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/input_common/CMakeLists.txt b/src/input_common/CMakeLists.txt index 9f4422269..cfe5caaa3 100644 --- a/src/input_common/CMakeLists.txt +++ b/src/input_common/CMakeLists.txt | |||
| @@ -10,8 +10,18 @@ set(HEADERS | |||
| 10 | main.h | 10 | main.h |
| 11 | ) | 11 | ) |
| 12 | 12 | ||
| 13 | if(SDL2_FOUND) | ||
| 14 | set(SRCS ${SRCS} sdl/sdl.cpp) | ||
| 15 | set(HEADERS ${HEADERS} sdl/sdl.h) | ||
| 16 | include_directories(${SDL2_INCLUDE_DIR}) | ||
| 17 | endif() | ||
| 18 | |||
| 13 | create_directory_groups(${SRCS} ${HEADERS}) | 19 | create_directory_groups(${SRCS} ${HEADERS}) |
| 14 | 20 | ||
| 15 | add_library(input_common STATIC ${SRCS} ${HEADERS}) | 21 | add_library(input_common STATIC ${SRCS} ${HEADERS}) |
| 16 | target_link_libraries(input_common common core) | 22 | target_link_libraries(input_common common core) |
| 17 | 23 | ||
| 24 | if(SDL2_FOUND) | ||
| 25 | target_link_libraries(input_common ${SDL2_LIBRARY}) | ||
| 26 | set_property(TARGET input_common APPEND PROPERTY COMPILE_DEFINITIONS HAVE_SDL2) | ||
| 27 | endif() | ||