summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}