Added pkg-config file

master
Guus Sliepen ago%!(EXTRA string=9 years) committed by Christophe Riccio
parent 767aa16e5b
commit 15748c30ea
  1. 13
      CMakeLists.txt
  2. 7
      glm.pc.in

@ -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)

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