mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-02 21:11:17 +12:00
Update SDL2 + Better way to use sys packages on linux
This commit is contained in:
parent
d27935a1bd
commit
fe2855168d
29 changed files with 443 additions and 631 deletions
8
dependencies/vcpkg_overlay_ports_linux/sdl2/usage
vendored
Normal file
8
dependencies/vcpkg_overlay_ports_linux/sdl2/usage
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
sdl2 provides CMake targets:
|
||||
|
||||
find_package(SDL2 CONFIG REQUIRED)
|
||||
target_link_libraries(main
|
||||
PRIVATE
|
||||
$<TARGET_NAME_IF_EXISTS:SDL2::SDL2main>
|
||||
$<IF:$<TARGET_EXISTS:SDL2::SDL2>,SDL2::SDL2,SDL2::SDL2-static>
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue