Merge pull request #509 from gsliepen/master

Added pkg-config file #509
This commit is contained in:
Christophe 2016-05-30 13:38:30 +02:00
commit d69616bbc8
2 changed files with 20 additions and 0 deletions

View file

@ -218,4 +218,17 @@ if (NOT CMAKE_VERSION VERSION_LESS "3.0")
)
endif()
# build pkg-config file
configure_file(
"glm.pc.in"
"glm.pc"
@ONLY
)
# install pkg-config file
install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/glm.pc"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
)
export(PACKAGE glm)

7
glm.pc.in Normal file
View file

@ -0,0 +1,7 @@
prefix=@CMAKE_INSTALL_PREFIX@
includedir=${prefix}/include
Name: GLM
Description: OpenGL Mathematics
Version: @GLM_VERSION@
Cflags: -I${includedir}