diff options
| author | bunnei <bunneidev@gmail.com> | 2019-03-13 11:46:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-13 11:46:57 -0400 |
| commit | 0a923b4ab3838e3560bcebf31e5bf6578a24dbcb (patch) | |
| tree | 35c472ea24733da9e12dc4aaa83db5b7ba7bc28a /src/input_common/CMakeLists.txt | |
| parent | e8a21f52769ceef8aefdd06c54ca7026ab1a3d9a (diff) | |
| parent | 71817afbe9483f7b2258a8891d0a6730c8c7b71e (diff) | |
Merge pull request #2187 from FearlessTobi/port-sdl-things
Port various Citra changes to input_common, including deadzone support
Diffstat (limited to 'src/input_common/CMakeLists.txt')
| -rw-r--r-- | src/input_common/CMakeLists.txt | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/input_common/CMakeLists.txt b/src/input_common/CMakeLists.txt index 1c7db28c0..5b4e032bd 100644 --- a/src/input_common/CMakeLists.txt +++ b/src/input_common/CMakeLists.txt @@ -7,15 +7,18 @@ add_library(input_common STATIC main.h motion_emu.cpp motion_emu.h - - $<$<BOOL:${SDL2_FOUND}>:sdl/sdl.cpp sdl/sdl.h> + sdl/sdl.cpp + sdl/sdl.h ) -create_target_directory_groups(input_common) - -target_link_libraries(input_common PUBLIC core PRIVATE common) - if(SDL2_FOUND) + target_sources(input_common PRIVATE + sdl/sdl_impl.cpp + sdl/sdl_impl.h + ) target_link_libraries(input_common PRIVATE SDL2) target_compile_definitions(input_common PRIVATE HAVE_SDL2) endif() + +create_target_directory_groups(input_common) +target_link_libraries(input_common PUBLIC core PRIVATE common) |
