mirror of
https://github.com/SFML/SFML.git
synced 2024-11-29 06:41:05 +08:00
2ac7653608
The modules provided are: - sfml-system - sfml-graphics - sfml-window - sfml-audio - sfml-network - sfml-all (depends on all the above modules) They are installed to ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/pkgconfig/ which is the standard location for pkg-config files on Linux. An example use if using autotools: # configure.ac AC_INIT([sfml-example],[1.0],[example@example.com]) AM_INIT_AUTOMAKE([foreign]) AC_PROG_CXX PKG_CHECK_MODULES([sfml], [sfml-all >= 2.0.0], [], [AC_MSG_ERROR([SFML is required])]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT # Makefile.am bin_PROGRAMS = sfml_example sfml_example_SOURCES = src/sfml_example.cpp sfml_example_CFLAGS = $(sfml_CFLAGS) sfml_example_LIBS = $(sfml_LIBS) An example if using hand-written Makefiles: # Makefile sfml-example: src/sfml-example.cpp g++ `pkg-config --cflags --libs sfml-all` -o $@ $^
12 lines
354 B
PkgConfig
12 lines
354 B
PkgConfig
prefix=@CMAKE_INSTALL_PREFIX@
|
|
exec_prefix=${prefix}
|
|
libdir=${exec_prefix}/lib@LIB_SUFFIX@
|
|
includedir=${prefix}/include
|
|
|
|
Name: SFML-graphics
|
|
Description: The Simple and Fast Multimedia Library, graphics module.
|
|
URL: http://www.sfml-dev.org
|
|
Version: @VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@
|
|
Libs: -L${libdir} -lsfml-graphics
|
|
Cflags: -I${includedir}
|