summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-04-08 09:11:16 -0700
committerChad Versace <chad.versace@linux.intel.com>2012-04-08 12:37:35 -0700
commit7b3f10a57253ff6730de83e16650613f89463cf7 (patch)
tree4ed9dcd4db1421921f7e7f73f3a77e1288ae83c8
parent79f51dc25319d0dd509a1e00647480da42a41f46 (diff)
waffle.pc: Install waffle pkgconfig file
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
-rw-r--r--CMakeLists.txt9
-rw-r--r--waffle.pc.in10
2 files changed, 19 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 84e46e5..8d82b21 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -144,6 +144,15 @@ if(waffle_build_tests)
endif(waffle_build_tests)
# ------------------------------------------------------------------------------
+# Install: waffle.pc
+# ------------------------------------------------------------------------------
+
+configure_file(waffle.pc.in waffle.pc @ONLY)
+
+install(FILES ${CMAKE_BINARY_DIR}/waffle.pc
+ DESTINATION ${waffle_install_libdir}/pkgconfig)
+
+# ------------------------------------------------------------------------------
# Print summary
# ------------------------------------------------------------------------------
diff --git a/waffle.pc.in b/waffle.pc.in
new file mode 100644
index 0000000..884afbc
--- /dev/null
+++ b/waffle.pc.in
@@ -0,0 +1,10 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+libdir=@lwaffle_install_ibdir@
+includedir=@waffle_install_includedir@
+
+Name: waffle
+Description: a library for selecting GL API and window system at runtime
+Version: @waffle_version@
+Libs: -L${libdir} -lwaffle
+Cflags: -I${includedir}