summaryrefslogtreecommitdiff
path: root/src/input_common/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar wwylele2017-01-21 17:33:48 +0200
committerGravatar wwylele2017-03-01 23:30:57 +0200
commit51b1c1f211bf8112eba845256bd52cbd36a5932a (patch)
treead685410ae7b83df0474b9de206f99b68e5be398 /src/input_common/CMakeLists.txt
parentInputCommon: add AnalogFromButton (diff)
downloadyuzu-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.txt10
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
13if(SDL2_FOUND)
14 set(SRCS ${SRCS} sdl/sdl.cpp)
15 set(HEADERS ${HEADERS} sdl/sdl.h)
16 include_directories(${SDL2_INCLUDE_DIR})
17endif()
18
13create_directory_groups(${SRCS} ${HEADERS}) 19create_directory_groups(${SRCS} ${HEADERS})
14 20
15add_library(input_common STATIC ${SRCS} ${HEADERS}) 21add_library(input_common STATIC ${SRCS} ${HEADERS})
16target_link_libraries(input_common common core) 22target_link_libraries(input_common common core)
17 23
24if(SDL2_FOUND)
25 target_link_libraries(input_common ${SDL2_LIBRARY})
26 set_property(TARGET input_common APPEND PROPERTY COMPILE_DEFINITIONS HAVE_SDL2)
27endif()