Added pkg-config support (thanks, Jonas!).

This commit is contained in:
Ryan C. Gordon 2013-11-13 00:38:35 -05:00
parent 4046759f61
commit 6d9923706d
3 changed files with 26 additions and 0 deletions

View File

@ -358,6 +358,18 @@ if(UNIX)
)
endif()
if(UNIX AND NOT APPLE)
configure_file(
"extras/physfs.pc.in"
"extras/physfs.pc"
@ONLY
)
install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/extras/physfs.pc"
DESTINATION "lib/pkgconfig"
)
endif()
macro(message_bool_option _NAME _VALUE)
if(${_VALUE})
message(STATUS " ${_NAME}: enabled")

View File

@ -139,6 +139,9 @@ Bug fixes:
Bug fixes:
Andreas Karlsson
pkg-config support:
Jonas Kulla
Other stuff:
Your name here! Patches go to icculus@icculus.org ...

11
extras/physfs.pc.in Normal file
View File

@ -0,0 +1,11 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: PhysicsFS
Description: PhysicsFS is a library to provide abstract access to various archives.
URL: https://icculus.org/physfs/
Version: @PHYSFS_VERSION@
Libs: -L${libdir} -lphysfs
Cflags: -I${includedir}