diff --git a/CMakeLists.txt b/CMakeLists.txt index dc0d4450..a9ec57b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -716,5 +716,13 @@ endif () ############################################################################### -configure_file(libcruft.pc.in libcruft.pc) +configure_file(libcruft.pc.in libcruft.pc @ONLY) +install ( +FILES + "${CMAKE_CURRENT_BINARY_DIR}/libcruft.pc" +DESTINATION + "${CMAKE_INSTALL_PREFIX}/share/pkgconfig" +) + + configure_file(Doxyfile.in Doxyfile) diff --git a/libcruft.pc.in b/libcruft.pc.in index 4339e994..14401179 100644 --- a/libcruft.pc.in +++ b/libcruft.pc.in @@ -1,7 +1,7 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=@CMAKE_INSTALL_PREFIX@ +libdir=@CMAKE_INSTALL_PREFIX@/lib +includedir=@CMAKE_INSTALL_PREFIX@/include Name: libcruft Description: A simple utility library in C++