vcpkg/ports/restinio/portfile.cmake
2019-12-02 10:31:27 -08:00

24 lines
796 B
CMake

include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO stiffstream/restinio
REF 4e1ab4e7718a14d4cf043cc9c3f85395bd46e34b # v.0.6.1.1
SHA512 36a0f1587f9e1b5862f9234db921ce7745605da60894cf1abea21406807b18d42f1cc90a51c2835f77e75f977780361a759be02896d66b7530d180dd463a20b5
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}/vcpkg
PREFER_NINJA
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/restinio)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug)
# Handle copyright
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/restinio)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/restinio/LICENSE ${CURRENT_PACKAGES_DIR}/share/restinio/copyright)