From 8f8dfd4d448708f3cdc071955c4fce9f85eb03b6 Mon Sep 17 00:00:00 2001 From: Sylvain Beucler Date: Thu, 15 Mar 2012 20:51:24 +0000 Subject: [PATCH] Add pkg-config script (cmake changes added by mistake in previous commit) git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1142 7f0cb862-5218-0410-a997-914c9d46530a --- CMakeLists.txt | 1 + freeglut.pc.in | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 freeglut.pc.in diff --git a/CMakeLists.txt b/CMakeLists.txt index b1f8216..369e03c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 index 0000000..a5425cd --- /dev/null +++ b/freeglut.pc.in @@ -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} -- 1.7.10.4