[Beignet] [PATCH v2] generate pkg-config file

Lu Guanqun guanqun.lu at intel.com
Wed Oct 16 22:45:32 PDT 2013


This would ease the configuration for other automake based softwares.

Signed-off-by: Lu Guanqun <guanqun.lu at intel.com>
---
 CMakeLists.txt |    4 ++++
 libcl.pc.in    |   11 +++++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 libcl.pc.in

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3d18f50..74322e0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -146,3 +146,7 @@ ADD_SUBDIRECTORY(backend)
 ADD_SUBDIRECTORY(src)
 ADD_SUBDIRECTORY(utests)
 
+# create pkg-config file
+configure_file(libcl.pc.in libcl.pc @ONLY)
+
+install(FILES libcl.pc DESTINATION /usr/share/pkgconfig)
diff --git a/libcl.pc.in b/libcl.pc.in
new file mode 100644
index 0000000..63c67ed
--- /dev/null
+++ b/libcl.pc.in
@@ -0,0 +1,11 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+libdir=${prefix}/lib
+includedir=${prefix}/include
+
+Name: Beignet
+Description: OpenCL for Intel Platform (Support OpenCL @LIBCL_C_VERSION_MAJOR at .@LIBCL_C_VERSION_MINOR@)
+Version: @LIBCL_DRIVER_VERSION_MAJOR at .@LIBCL_DRIVER_VERSION_MINOR@
+Libs: -L${libdir} -lcl
+Cflags: -I${includedir}
+



More information about the Beignet mailing list