diff options
| author | 2018-01-18 01:37:17 -0500 | |
|---|---|---|
| committer | 2018-01-18 01:37:17 -0500 | |
| commit | be0e14ab3e7b07b5d7879347114428f0beef595f (patch) | |
| tree | 34521653cd5172d2af45214c3cce1f010842210a /src/input_common | |
| parent | Merge pull request #91 from lioncash/svc (diff) | |
| parent | CMakeLists: Derive the source directory grouping from targets themselves (diff) | |
| download | yuzu-be0e14ab3e7b07b5d7879347114428f0beef595f.tar.gz yuzu-be0e14ab3e7b07b5d7879347114428f0beef595f.tar.xz yuzu-be0e14ab3e7b07b5d7879347114428f0beef595f.zip | |
Merge pull request #84 from lioncash/cmake
CMakeLists: Derive the source directory grouping from targets themselves
Diffstat (limited to 'src/input_common')
| -rw-r--r-- | src/input_common/CMakeLists.txt | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/src/input_common/CMakeLists.txt b/src/input_common/CMakeLists.txt index 92792a702..1c7db28c0 100644 --- a/src/input_common/CMakeLists.txt +++ b/src/input_common/CMakeLists.txt | |||
| @@ -1,25 +1,18 @@ | |||
| 1 | set(SRCS | 1 | add_library(input_common STATIC |
| 2 | analog_from_button.cpp | 2 | analog_from_button.cpp |
| 3 | keyboard.cpp | 3 | analog_from_button.h |
| 4 | main.cpp | 4 | keyboard.cpp |
| 5 | motion_emu.cpp | 5 | keyboard.h |
| 6 | ) | 6 | main.cpp |
| 7 | main.h | ||
| 8 | motion_emu.cpp | ||
| 9 | motion_emu.h | ||
| 7 | 10 | ||
| 8 | set(HEADERS | 11 | $<$<BOOL:${SDL2_FOUND}>:sdl/sdl.cpp sdl/sdl.h> |
| 9 | analog_from_button.h | 12 | ) |
| 10 | keyboard.h | ||
| 11 | main.h | ||
| 12 | motion_emu.h | ||
| 13 | ) | ||
| 14 | 13 | ||
| 15 | if(SDL2_FOUND) | 14 | create_target_directory_groups(input_common) |
| 16 | set(SRCS ${SRCS} sdl/sdl.cpp) | ||
| 17 | set(HEADERS ${HEADERS} sdl/sdl.h) | ||
| 18 | endif() | ||
| 19 | |||
| 20 | create_directory_groups(${SRCS} ${HEADERS}) | ||
| 21 | 15 | ||
| 22 | add_library(input_common STATIC ${SRCS} ${HEADERS}) | ||
| 23 | target_link_libraries(input_common PUBLIC core PRIVATE common) | 16 | target_link_libraries(input_common PUBLIC core PRIVATE common) |
| 24 | 17 | ||
| 25 | if(SDL2_FOUND) | 18 | if(SDL2_FOUND) |