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) configure_file(Doxyfile.in Doxyfile)

View File

@ -1,7 +1,7 @@
prefix=@prefix@ prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=@exec_prefix@ exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=@libdir@ libdir=@CMAKE_INSTALL_PREFIX@/lib
includedir=@includedir@ includedir=@CMAKE_INSTALL_PREFIX@/include
Name: libcruft Name: libcruft
Description: A simple utility library in C++ Description: A simple utility library in C++