Added pkg-config file

This commit is contained in:
Guus Sliepen 2016-05-30 12:50:00 +02:00 committed by Christophe Riccio
parent 767aa16e5b
commit 15748c30ea
2 changed files with 20 additions and 0 deletions

View File

@ -200,4 +200,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}