mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[cppzmq] Install cmake target files
This commit is contained in:
parent
2a80b89ea7
commit
028f280d22
@ -1,4 +1,4 @@
|
|||||||
Source: cppzmq
|
Source: cppzmq
|
||||||
Version: 4.2.2
|
Version: 4.2.2-1
|
||||||
Build-Depends: zeromq
|
Build-Depends: zeromq
|
||||||
Description: lightweight messaging kernel, C++ bindings
|
Description: lightweight messaging kernel, C++ bindings
|
||||||
|
@ -9,9 +9,16 @@ vcpkg_from_github(
|
|||||||
HEAD_REF master
|
HEAD_REF master
|
||||||
)
|
)
|
||||||
|
|
||||||
# cppzmq is a single header library, so we just need to copy that file in the include directory
|
vcpkg_configure_cmake(
|
||||||
file(INSTALL ${SOURCE_PATH}/zmq.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
file(INSTALL ${SOURCE_PATH}/zmq_addon.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
PREFER_NINJA
|
||||||
|
)
|
||||||
|
|
||||||
|
vcpkg_install_cmake()
|
||||||
|
|
||||||
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/cppzmq)
|
||||||
|
|
||||||
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
||||||
|
|
||||||
# Handle copyright
|
# Handle copyright
|
||||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/cppzmq)
|
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/cppzmq)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user