Skip to content

Commit

Permalink
Added pkg-config file
Browse files Browse the repository at this point in the history
  • Loading branch information
gsliepen authored and Groovounet committed May 30, 2016
1 parent 767aa16 commit 15748c3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 7 additions & 0 deletions glm.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
prefix=@CMAKE_INSTALL_PREFIX@
includedir=${prefix}/include

Name: GLM
Description: OpenGL Mathematics
Version: @GLM_VERSION@
Cflags: -I${includedir}

0 comments on commit 15748c3

Please sign in to comment.