vcpkg/ports/sdl2/usage
Pierre Wendling 599f106de6
[sdl2] Bump to 2.24.2 (#27591)
* [sdl2] Bump to 2.24.2.

* [sdl2] Add a usage file.

* [sdl2] Update baseline and version history.

* [sdl2] Update `SDL2_VERSION` variable.

* [sdl2] Update `HEAD_REF`.

* Use VERSION.

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2022-11-02 14:12:36 -07:00

9 lines
241 B
Plaintext

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>
)