From 7fa91f0b07b2ffd2143041cb52b8405d152e7b05 Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Sun, 18 Oct 2009 12:48:18 +0200 Subject: Add pkg-config file for libplist++. --- CMakeLists.txt | 2 ++ libplist++.pc.in | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 libplist++.pc.in diff --git a/CMakeLists.txt b/CMakeLists.txt index 116bf73..4d13175 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,9 +40,11 @@ ADD_CUSTOM_TARGET(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/c ########## PkgConfig ############################ CONFIGURE_FILE( "libplist.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libplist.pc" ) +CONFIGURE_FILE( "libplist++.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libplist++.pc" ) ########## INSTALL ############################## INSTALL( FILES "${CMAKE_CURRENT_BINARY_DIR}/libplist.pc" DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig/ ) +INSTALL( FILES "${CMAKE_CURRENT_BINARY_DIR}/libplist++.pc" DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig/ ) ########## CPack ################################ INCLUDE( libplistPackaging ) diff --git a/libplist++.pc.in b/libplist++.pc.in new file mode 100644 index 0000000..c0fd6d2 --- /dev/null +++ b/libplist++.pc.in @@ -0,0 +1,12 @@ +prefix=${CMAKE_INSTALL_PREFIX} +exec_prefix=${CMAKE_INSTALL_PREFIX} +libdir=${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} +includedir=${CMAKE_INSTALL_PREFIX}/include + +Name: libplist++ +Description: C++ binding of libplist +Version: ${LIBPLIST_VERSION} +Requires: libplist-2.0 >= ${LIBPLIST_VERSION} +Libs: -L${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} -lplist++ +Cflags: -I${CMAKE_INSTALL_PREFIX}/include + -- cgit v1.1-32-gdbae