[clblas] 17/125: Adding basic support for pkg-config based configuration management, for gcc based distributions.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Fri May 29 06:57:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository clblas.

commit cbb8d82c708f03ab29c42f674c75a604c7585699
Author: Kent Knox <kent.knox at amd>
Date:   Sat Sep 7 22:23:28 2013 -0500

    Adding basic support for pkg-config based configuration management, for gcc based distributions.
---
 src/library/CMakeLists.txt |  8 ++++++++
 src/library/clBLAS.pc.in   | 12 ++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/src/library/CMakeLists.txt b/src/library/CMakeLists.txt
index 5ab545a..f3ac63e 100644
--- a/src/library/CMakeLists.txt
+++ b/src/library/CMakeLists.txt
@@ -299,6 +299,14 @@ add_custom_target( GENERATE_CLT
 
 add_dependencies( GENERATE_CLT tplgen )
 
+if( CMAKE_COMPILER_IS_GNUCC )
+    configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/clBLAS.pc.in
+                    ${CMAKE_CURRENT_BINARY_DIR}/clBLAS.pc @ONLY )
+
+    install( FILES ${CMAKE_CURRENT_BINARY_DIR}/clBLAS.pc
+             DESTINATION lib${SUFFIX_LIB}/pkgconfig )
+endif( )
+
 add_library(clBLAS SHARED ${CLBLAS_SOURCES} ${GLOBAL_HEADERS} ${SRC_BLAS_HEADERS} ${SRC_BLAS_GENS_HEADERS})
 add_dependencies(clBLAS GENERATE_CLT)
 set_target_properties(clBLAS PROPERTIES VERSION ${clBLAS_VERSION})
diff --git a/src/library/clBLAS.pc.in b/src/library/clBLAS.pc.in
new file mode 100644
index 0000000..3eef330
--- /dev/null
+++ b/src/library/clBLAS.pc.in
@@ -0,0 +1,12 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}/bin at SUFFIX_BIN@
+includedir=${prefix}/include
+libdir=${exec_prefix}/lib at SUFFIX_LIB@
+
+Name: clFFT
+Description: Open source OpenCL BLAS library
+Version: @CLFFT_VERSION@
+URL: https://github.com/clMathLibraries/clBLAS
+
+Cflags: -I${includedir}
+Libs: -L${libdir} -lclBLAS

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clblas.git



More information about the debian-science-commits mailing list