Merge pull request #209 from kloczek/master

Add spirv-headers pkgconfig file
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6f01ef0..84e38a2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -124,4 +124,10 @@
         NAMESPACE "${namespace}"
         DESTINATION "${config_install_dir}"
     )
+
+    configure_file(${CMAKE_SOURCE_DIR}/SPIRV-Headers.pc.in ${CMAKE_BINARY_DIR}/SPIRV-Headers.pc @ONLY)
+    install(
+        FILES "${CMAKE_BINARY_DIR}/SPIRV-Headers.pc"
+        DESTINATION ${CMAKE_INSTALL_DATADIR}/pkgconfig
+    )
 endif()
diff --git a/SPIRV-Headers.pc.in b/SPIRV-Headers.pc.in
new file mode 100644
index 0000000..345f5f8
--- /dev/null
+++ b/SPIRV-Headers.pc.in
@@ -0,0 +1,9 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
+
+Name: SPIRV-Headers
+Description: Header files from the SPIR-V registry
+Version: @CMAKE_PROJECT_VERSION@
+Requires:
+Libs:
+Cflags: -I${includedir}