Merge pull request #8523 from JackBoosY/dev/jack/8503

[sfml]Add usage.
This commit is contained in:
Victor Romero 2019-10-09 13:49:56 -07:00 committed by GitHub
commit 0a5772ae14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,5 @@
Source: sfml
Version: 2.5.1-3
Version: 2.5.1-4
Homepage: https://github.com/sfml/sfml
Description: Simple and fast multimedia library
Build-Depends: freetype, libflac, libogg, libvorbis, openal-soft, stb

7
ports/sfml/usage Normal file
View File

@ -0,0 +1,7 @@
The package sfml provides CMake targets:
find_package(SFML COMPONENTS system window graphics CONFIG REQUIRED)
# Windows
target_link_libraries(main PRIVATE FLAC OpenAL OpenGL Vorbis)
# Linux/MacOS
target_link_libraries(main PRIVATE X11 FLAC UDev OpenAL)