mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-25 17:50:14 +00:00
29 lines
636 B
CMake
29 lines
636 B
CMake
set(SRCS
|
|
input_core.cpp
|
|
devices/Keyboard.cpp
|
|
devices/SDLGamepad.cpp
|
|
key_map.cpp
|
|
)
|
|
|
|
set(HEADERS
|
|
input_core.h
|
|
key_map.h
|
|
devices/IDevice.h
|
|
devices/Keyboard.h
|
|
devices/SDLGamepad.h
|
|
)
|
|
|
|
|
|
if(SDL2_FOUND)
|
|
include_directories(${SDL2_INCLUDE_DIR})
|
|
endif()
|
|
|
|
create_directory_groups(${SRCS} ${HEADERS})
|
|
|
|
add_library(input_core STATIC ${SRCS} ${HEADERS})
|
|
|
|
if(SDL2_FOUND)
|
|
target_link_libraries(input_core ${SDL2_LIBRARY})
|
|
set_property(TARGET input_core APPEND PROPERTY COMPILE_DEFINITIONS HAVE_SDL2)
|
|
endif()
|