Add pkg-config script (cmake changes added by mistake in previous commit)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1142 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
02880439ed
commit
bae0c12952
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -28,6 +28,7 @@ freeglut/freeglut/doc/ogl_sm.png -text
|
||||
freeglut/freeglut/doc/progress.html svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/doc/structure.html svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/freeglut.lsm svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/freeglut.pc.in -text
|
||||
freeglut/freeglut/freeglut.rc.in svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/freeglut.spec svn_keywords=Author+Date+Id+Revision
|
||||
freeglut/freeglut/include/GL/freeglut.h svn_keywords=Author+Date+Id+Revision
|
||||
|
@ -356,3 +356,4 @@ ELSE()
|
||||
ENDIF()
|
||||
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/freeglut.pc.in ${CMAKE_BINARY_DIR}/freeglut.pc @ONLY)
|
||||
INSTALL(FILES ${CMAKE_BINARY_DIR}/freeglut.pc DESTINATION share/pkgconfig)
|
||||
# TODO: change the library name when building for GLES, e.g. -lglut-GLES2
|
||||
|
10
freeglut/freeglut/freeglut.pc.in
Normal file
10
freeglut/freeglut/freeglut.pc.in
Normal file
@ -0,0 +1,10 @@
|
||||
prefix=@CMAKE_INSTALL_PREFIX@
|
||||
libdir=${prefix}/lib
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: glut
|
||||
Description: A freely licensed and improved alternative to the GLUT library
|
||||
Version: @VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@
|
||||
Libs: -L${libdir} -lglut
|
||||
Libs.private: @LIBS_PRIVATE@
|
||||
Cflags: -I${includedir}
|
Reference in New Issue
Block a user