diff options
Diffstat (limited to 'src/input_common/CMakeLists.txt')
| -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) |