vcpkg/ports/zstr/portfile.cmake

20 lines
632 B
CMake
Raw Normal View History

# header-only library
2019-06-07 09:58:40 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mateidavid/zstr
REF "v${VERSION}"
SHA512 3017da244810a45f7111f76f8d0dd988e162f08eab28b7465cad4549d84200fc834975275daf9588d35c6125e6f167c1e2dd5ec18022dac1eceabdc24d24cffe
2019-06-07 09:58:40 +08:00
HEAD_REF master
)
# Install source files
file(INSTALL "${SOURCE_PATH}/src/strict_fstream.hpp"
"${SOURCE_PATH}/src/zstr.hpp"
DESTINATION "${CURRENT_PACKAGES_DIR}/include")
2019-06-07 09:58:40 +08:00
# Install license
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
# Install usage
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")