Skip to content

Commit

Permalink
[cppzmq] Install cmake target files
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0219-msft committed Apr 17, 2018
1 parent 2a80b89 commit 028f280
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ports/cppzmq/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Source: cppzmq
Version: 4.2.2
Version: 4.2.2-1
Build-Depends: zeromq
Description: lightweight messaging kernel, C++ bindings
13 changes: 10 additions & 3 deletions ports/cppzmq/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,16 @@ vcpkg_from_github(
HEAD_REF master
)

# cppzmq is a single header library, so we just need to copy that file in the include directory
file(INSTALL ${SOURCE_PATH}/zmq.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include)
file(INSTALL ${SOURCE_PATH}/zmq_addon.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
)

vcpkg_install_cmake()

vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/cppzmq)

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)

# Handle copyright
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/cppzmq)
Expand Down

0 comments on commit 028f280

Please sign in to comment.