mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-01-28 20:17:14 -03:00
8 lines
241 B
Text
8 lines
241 B
Text
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>
|
|
)
|