Add pkg-config script (cmake changes added by mistake in previous commit)
authorSylvain Beucler <beuc@beuc.net>
Thu, 15 Mar 2012 20:51:24 +0000 (20:51 +0000)
committerSylvain Beucler <beuc@beuc.net>
Thu, 15 Mar 2012 20:51:24 +0000 (20:51 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1142 7f0cb862-5218-0410-a997-914c9d46530a

CMakeLists.txt
freeglut.pc.in [new file with mode: 0644]

index b1f8216..369e03c 100644 (file)
@@ -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
diff --git a/freeglut.pc.in b/freeglut.pc.in
new file mode 100644 (file)
index 0000000..a5425cd
--- /dev/null
@@ -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}