diff options
author | Matt Hoosier <matt.hoosier@garmin.com> | 2020-03-03 09:25:25 -0600 |
---|---|---|
committer | Matt Hoosier <matt.hoosier@garmin.com> | 2020-03-03 09:39:11 -0600 |
commit | 5d50c15234b78597d78bcddc911ecb4cb9cc123b (patch) | |
tree | 2ec2c189465a698a41bd208ce83ed9a1d76b7523 /kms++util/CMakeLists.txt | |
parent | 7c5e645112a899ad018219365c3898b0e896353f (diff) |
Supply pkg-config files
These are customary, and pretty straightforward to offer.
Diffstat (limited to 'kms++util/CMakeLists.txt')
-rw-r--r-- | kms++util/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
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) |