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-08-15 17:23:24 +08:00
|
|
|
REF v1.0.3
|
|
|
|
SHA512 8759b522da34be68a7ba0959ed3d85382965efe5080e4cdd403001f3911d36398b7fe9d039fd9fb485a0d557cec0fa53863a512eb88f13f3ff222b6e30642baf
|
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)
|