[clfft] 06/109: Add pkg-config support

Jérôme Kieffer kieffer-guest at moszumanska.debian.org
Wed May 20 07:29:19 UTC 2015


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

kieffer-guest pushed a commit to branch debian
in repository clfft.

commit 881788eeae5c47c02e1877e3d71a44e409950468
Author: Matthias Vogelgesang <matthias.vogelgesang at kit.edu>
Date:   Mon Aug 19 15:59:27 2013 +0200

    Add pkg-config support
---
 src/library/CMakeLists.txt |  7 +++++++
 src/library/clFFT.pc.in    | 11 +++++++++++
 2 files changed, 18 insertions(+)

diff --git a/src/library/CMakeLists.txt b/src/library/CMakeLists.txt
index ea7637b..212feb3 100644
--- a/src/library/CMakeLists.txt
+++ b/src/library/CMakeLists.txt
@@ -83,6 +83,13 @@ set_target_properties( clFFT PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINA
 if( UNIX )
 	# Right now, linux has problems compiling dynamic_cast, but the flag below doesn't help
 	# set_target_properties( clFFT PROPERTIES COMPILE_FLAGS "-frtti" )
+
+    configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/clFFT.pc.in
+                    ${CMAKE_CURRENT_BINARY_DIR}/clFFT.pc @ONLY IMMEDIATE )
+
+    install( FILES ${CMAKE_CURRENT_BINARY_DIR}/clFFT.pc
+             DESTINATION lib/pkgconfig
+           )
 endif( )
 
 if( BUILD64 )
diff --git a/src/library/clFFT.pc.in b/src/library/clFFT.pc.in
new file mode 100644
index 0000000..85cd882
--- /dev/null
+++ b/src/library/clFFT.pc.in
@@ -0,0 +1,11 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: clFFT
+Description: OpenCL FFT library
+Version: @CLFFT_VERSION@
+
+Libs: -L${libdir} -lclFFT
+Cflags: -I${includedir}

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



More information about the debian-science-commits mailing list