aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wild <ewild@sysmocom.de>2020-08-02 23:48:42 +0200
committerEric Wild <ewild@sysmocom.de>2020-08-02 23:48:42 +0200
commited0317e6a58c098874ac58b769cf2e609c18d9a5 (patch)
tree5f640f30a71ad911840e05f9ffa5418ebbb44747
parentc1faae295cb523d34ebfd1e007f244e8ee624ea3 (diff)
cmake: populate pkgconfig file with prefix
Previously the prefix and related paths were not set.
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2def354..d000f52 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -157,6 +157,11 @@ IF(CMAKE_CROSSCOMPILING)
UNSET(RTLSDR_PC_LIBS)
ENDIF(CMAKE_CROSSCOMPILING)
+set(prefix "${CMAKE_INSTALL_PREFIX}")
+set(exec_prefix \${prefix})
+set(includedir \${prefix}/include)
+set(libdir \${exec_prefix}/lib)
+
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/librtlsdr.pc.in
${CMAKE_CURRENT_BINARY_DIR}/librtlsdr.pc