Added pkg-config file

This commit is contained in:
Guus Sliepen 2016-05-30 12:50:00 +02:00
parent 19186b27ed
commit 0e018a5262
2 changed files with 20 additions and 0 deletions

View File

@ -218,4 +218,17 @@ if (NOT CMAKE_VERSION VERSION_LESS "3.0")
) )
endif() 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) 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}