build: correctly install the pkg-config file

This commit is contained in:
Danny Robson 2019-06-18 11:25:51 +10:00
parent 8e346d7717
commit 7dcba62047
2 changed files with 13 additions and 5 deletions

View File

@ -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)

View File

@ -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++