Skip to content

Commit e70dd63

Browse files
authored
Merge pull request zeromq#564 from stephanlachnit/p-add-pkg-config
Add pkg-config file
2 parents 361156a + 6f7338c commit e70dd63

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Conf
8787
COMPATIBILITY AnyNewerVersion)
8888
set(CMAKE_SIZEOF_VOID_P ${CPPZMQ_SIZEOF_VOID_P})
8989

90+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cppzmq.pc.in
91+
${CMAKE_CURRENT_BINARY_DIR}/cppzmq.pc @ONLY)
92+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cppzmq.pc
93+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
94+
9095
install(EXPORT ${PROJECT_NAME}-targets
9196
FILE ${PROJECT_NAME}Targets.cmake
9297
DESTINATION ${CPPZMQ_CMAKECONFIG_INSTALL_DIR})

cppzmq.pc.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
prefix="@CMAKE_INSTALL_PREFIX@"
2+
includedir="@CMAKE_INSTALL_FULL_INCLUDEDIR@"
3+
4+
Name: @PROJECT_NAME@
5+
Description: C++ binding for libzmq
6+
URL: https://github.com/zeromq/cppzmq
7+
Version: @PROJECT_VERSION@
8+
Requires: libzmq
9+
Cflags: -I"${includedir}" @pkg_config_defines@

0 commit comments

Comments
 (0)