2017-12-15 15:12:21 +08:00
|
|
|
include(vcpkg_common_functions)
|
2017-12-21 16:19:44 +08:00
|
|
|
|
2018-11-15 07:11:41 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2017-12-15 15:12:21 +08:00
|
|
|
|
2017-12-21 16:19:44 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO IronsDu/brynet
|
2019-04-16 13:30:11 +08:00
|
|
|
REF v1.0.2
|
|
|
|
SHA512 b07ceb858ed125959b3901415d6099939acf51a194950de8c65f063b6462a0ab424494659aedd889378bd4388cc9e71a0aedcb30108b6c2eef4d5e6ebea2cce8
|
2017-12-21 16:19:44 +08:00
|
|
|
HEAD_REF master
|
2017-12-15 15:12:21 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-12-21 16:19:44 +08:00
|
|
|
PREFER_NINJA
|
2017-12-15 15:12:21 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2017-12-21 16:19:44 +08:00
|
|
|
|
2017-12-15 15:12:21 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2017-12-21 16:19:44 +08:00
|
|
|
|
|
|
|
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/brynet)
|
2017-12-15 15:12:21 +08:00
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/brynet/LICENSE ${CURRENT_PACKAGES_DIR}/share/brynet/copyright)
|