From 18c820b710c10f036b407f33e6c14bfad27d30e1 Mon Sep 17 00:00:00 2001 From: Anusha Gugale Date: Wed, 25 Nov 2020 10:27:43 -0500 Subject: create .pc(pkg-config) file Signed-off-by: Anusha Gugale --- CMakeLists.txt | 10 ++++++++++ librba.pc.in | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 librba.pc.in diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ccfe4b..bfb4fbe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,4 +106,14 @@ endforeach() message(STATUS "*** dump end ***") endif(DEBUG_CMAKE) +configure_file( + "${CMAKE_CURRENT_SOURCE_DIR}/librba.pc.in" + "${CMAKE_CURRENT_BINARY_DIR}/librba.pc" + @ONLY +) + +install( + FILES "${CMAKE_CURRENT_BINARY_DIR}/librba.pc" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig" +) # end of file diff --git a/librba.pc.in b/librba.pc.in new file mode 100644 index 0000000..e2a63a3 --- /dev/null +++ b/librba.pc.in @@ -0,0 +1,10 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=${prefix} +libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ +includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/ + +Name: librba +Description: rba files +Version:1.0-r1 +Libs: -L${libdir} -lrba +Cflags: -I${includedir} -- cgit 1.2.3-korg