From 5d50c15234b78597d78bcddc911ecb4cb9cc123b Mon Sep 17 00:00:00 2001 From: Matt Hoosier Date: Tue, 3 Mar 2020 09:25:25 -0600 Subject: Supply pkg-config files These are customary, and pretty straightforward to offer. --- kms++util/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kms++util/CMakeLists.txt') diff --git a/kms++util/CMakeLists.txt b/kms++util/CMakeLists.txt index 5bbf596..0bfb56b 100644 --- a/kms++util/CMakeLists.txt +++ b/kms++util/CMakeLists.txt @@ -14,6 +14,8 @@ if (KMSXX_ENABLE_THREADING) add_definitions(-DHAS_PTHREAD) endif() +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/kms++util.pc.in ${CMAKE_CURRENT_BINARY_DIR}/kms++util.pc @ONLY) + # Set a dummy SOVERSION just to avoid havig a naked .so file in the filesystem. # This version number doesn't make any promise about API/ABI stability. set_target_properties(kms++util PROPERTIES @@ -24,3 +26,6 @@ install(TARGETS kms++util LIBRARY DESTINATION lib ARCHIVE DESTINATION lib PUBLIC_HEADER DESTINATION include/kms++util) + +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kms++util.pc + DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig) -- cgit v1.2.3