diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a5ed965..9622694a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/libvmemcache.pc.in b/libvmemcache.pc.in new file mode 100644 index 00000000..2aa2d73f --- /dev/null +++ b/libvmemcache.pc.in @@ -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@