Skip to content

Commit

Permalink
Add pkg-config file
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Lachnit <stephanlachnit@debian.org>
  • Loading branch information
stephanlachnit committed Jun 20, 2024
1 parent 820ccf1 commit fd5ae77
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -249,3 +249,13 @@ INSTALL (
DESTINATION "${cmake_config_path}"
COMPONENT msgpack-cxx
)

# Configure pkg-config file.
CONFIGURE_FILE (
msgpack-cxx.pc.in
msgpack-cxx.pc
@ONLY
)

# Install the pkg-config file.
INSTALL (FILES ${CMAKE_CURRENT_BINARY_DIR}/msgpack-cxx.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
7 changes: 7 additions & 0 deletions msgpack-cxx.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
prefix=@CMAKE_INSTALL_PREFIX@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@

Name: MessagePack for C++
Description: Binary-based efficient object serialization library
Version: @VERSION@
Cflags: -I${includedir}

0 comments on commit fd5ae77

Please sign in to comment.