diff options
author | Anusha Gugale <external.agogale@jp.adit-jv.com> | 2020-11-25 10:27:43 -0500 |
---|---|---|
committer | Kenji Hosokawa <khosokawa@jp.adit-jv.com> | 2020-12-16 22:52:08 +0900 |
commit | 18c820b710c10f036b407f33e6c14bfad27d30e1 (patch) | |
tree | f86beb3a66bf59e7109a78a25337dab4b408daa5 | |
parent | 92895f025efd9b54f634212cff5bfff1076bd11b (diff) |
create .pc(pkg-config) file
Signed-off-by: Anusha Gugale <external.agogale@jp.adit-jv.com>
-rw-r--r-- | CMakeLists.txt | 10 | ||||
-rw-r--r-- | librba.pc.in | 10 |
2 files changed, 20 insertions, 0 deletions
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} |