Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
Install pkg-config file.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinslusarz committed Mar 29, 2019
1 parent 31932c5 commit 4218ae3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ endif(DEVELOPER_MODE)
option(TRACE_TESTS
"more verbose test outputs" OFF)

configure_file(libvmemcache.pc.in libvmemcache.pc)
install(FILES ${CMAKE_BINARY_DIR}/libvmemcache.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)

enable_testing()
add_subdirectory(src)
add_subdirectory(tests)
Expand Down
11 changes: 11 additions & 0 deletions libvmemcache.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
prefix=@CMAKE_INSTALL_PREFIX@
libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
version=@VERSION@
includedir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@

Name: libvmemcache
Description: libvmemcache - buffer based LRU cache
Version: @VERSION@
URL: http://github.com/pmem/vmemcache
Libs: -L@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@ -lvmemcache
Cflags: -I@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@

0 comments on commit 4218ae3

Please sign in to comment.