mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-12 10:33:52 +01:00
Add pkg-config file
This commit is contained in:
parent
7742eb3693
commit
6f7338cb05
@ -87,6 +87,11 @@ write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Conf
|
|||||||
COMPATIBILITY AnyNewerVersion)
|
COMPATIBILITY AnyNewerVersion)
|
||||||
set(CMAKE_SIZEOF_VOID_P ${CPPZMQ_SIZEOF_VOID_P})
|
set(CMAKE_SIZEOF_VOID_P ${CPPZMQ_SIZEOF_VOID_P})
|
||||||
|
|
||||||
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cppzmq.pc.in
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/cppzmq.pc @ONLY)
|
||||||
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cppzmq.pc
|
||||||
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
||||||
|
|
||||||
install(EXPORT ${PROJECT_NAME}-targets
|
install(EXPORT ${PROJECT_NAME}-targets
|
||||||
FILE ${PROJECT_NAME}Targets.cmake
|
FILE ${PROJECT_NAME}Targets.cmake
|
||||||
DESTINATION ${CPPZMQ_CMAKECONFIG_INSTALL_DIR})
|
DESTINATION ${CPPZMQ_CMAKECONFIG_INSTALL_DIR})
|
||||||
|
9
cppzmq.pc.in
Normal file
9
cppzmq.pc.in
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
prefix="@CMAKE_INSTALL_PREFIX@"
|
||||||
|
includedir="@CMAKE_INSTALL_FULL_INCLUDEDIR@"
|
||||||
|
|
||||||
|
Name: @PROJECT_NAME@
|
||||||
|
Description: C++ binding for libzmq
|
||||||
|
URL: https://github.com/zeromq/cppzmq
|
||||||
|
Version: @PROJECT_VERSION@
|
||||||
|
Requires: libzmq
|
||||||
|
Cflags: -I"${includedir}" @pkg_config_defines@
|
Loading…
Reference in New Issue
Block a user