summaryrefslogtreecommitdiff
blob: c86cdfa458c2adb0e8b1f98ca9df55f86094336f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
From 077397e65a8867fe3e93de0930d9556d39f10126 Mon Sep 17 00:00:00 2001
From: Sylvain Munaut <tnt@246tNt.com>
Date: Sun, 07 Jul 2013 19:54:23 +0000
Subject: misc: Add a .pc file

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a251954..10dc8c8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -158,3 +158,21 @@ add_subdirectory(python)
 add_subdirectory(grc)
 add_subdirectory(apps)
 add_subdirectory(docs)
+
+########################################################################
+# Create Pkg Config File
+########################################################################
+file(TO_NATIVE_PATH "${CMAKE_INSTALL_PREFIX}"           prefix)
+file(TO_NATIVE_PATH "\${prefix}"                        exec_prefix)
+file(TO_NATIVE_PATH "\${exec_prefix}/${GR_LIBRARY_DIR}" libdir)
+file(TO_NATIVE_PATH "\${prefix}/${GR_INCLUDE_DIR}"      includedir)
+
+configure_file(
+    ${CMAKE_CURRENT_SOURCE_DIR}/gnuradio-iqbalance.pc.in
+    ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-iqbalance.pc
+@ONLY)
+
+install(
+    FILES ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-iqbalance.pc
+    DESTINATION ${GR_LIBRARY_DIR}/pkgconfig
+)
diff --git a/gnuradio-iqbalance.pc.in b/gnuradio-iqbalance.pc.in
new file mode 100644
index 0000000..edde90d
--- /dev/null
+++ b/gnuradio-iqbalance.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: gnuradio-iqbalance
+Description: gnuradio I/Q balancing
+URL: http://git.osmocom.org/gr-iqbal/
+Requires: gnuradio-runtime
+Libs: -L${libdir} -lgnuradio-iqbalance
+Cflags: -I${includedir}
--
cgit v0.9.1