mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-11 06:28:17 -05:00
CMake: Define an interface target for SDL2 definitions
This commit is contained in:
@ -13,7 +13,6 @@ set(HEADERS
|
||||
if(SDL2_FOUND)
|
||||
set(SRCS ${SRCS} sdl/sdl.cpp)
|
||||
set(HEADERS ${HEADERS} sdl/sdl.h)
|
||||
include_directories(${SDL2_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
create_directory_groups(${SRCS} ${HEADERS})
|
||||
@ -22,6 +21,6 @@ add_library(input_common STATIC ${SRCS} ${HEADERS})
|
||||
target_link_libraries(input_common PUBLIC core PRIVATE common)
|
||||
|
||||
if(SDL2_FOUND)
|
||||
target_link_libraries(input_common PRIVATE ${SDL2_LIBRARY})
|
||||
target_link_libraries(input_common PRIVATE SDL2)
|
||||
target_compile_definitions(input_common PRIVATE HAVE_SDL2)
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user