2018-06-10 22:26:25 +08:00
|
|
|
include(vcpkg_common_functions)
|
2018-06-13 06:00:16 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Milerius/shiva
|
2018-06-18 03:35:18 +08:00
|
|
|
REF 0.3
|
|
|
|
SHA512 1ffb89019bceaa5d7968f812d33dbadbba847c510fefb43774a9a0a5a970190d166f9f0f43069f3d0e5e8ce6d9c1b103f77f063bfb11223439c09dc2b1e52f6d
|
2018-06-13 06:00:16 +08:00
|
|
|
HEAD_REF master
|
2018-06-10 22:26:25 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2018-06-13 06:00:16 +08:00
|
|
|
PREFER_NINJA
|
2018-06-10 22:26:25 +08:00
|
|
|
OPTIONS -DSHIVA_BUILD_TESTS=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/shiva)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
2018-06-13 06:00:16 +08:00
|
|
|
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/shiva)
|
2018-06-10 22:26:25 +08:00
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/shiva/LICENSE ${CURRENT_PACKAGES_DIR}/share/shiva/copyright)
|