vcpkg/ports/shiva/portfile.cmake

23 lines
777 B
CMake
Raw Normal View History

2018-06-10 16:26:25 +02:00
include(vcpkg_common_functions)
2018-06-13 00:00:16 +02:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Milerius/shiva
2018-08-13 18:59:52 +02:00
REF 0.9
SHA512 3086a77377d6cc80eeea78c70f9caab09211e5950720c78c06785002ac80824a75738c7d7b08b69ac3ddc8ca291abd6cf7632ceb6b5783ce2fe79b699ae8a84b
2018-06-13 00:00:16 +02:00
HEAD_REF master
2018-06-10 16:26:25 +02:00
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
2018-06-13 00:00:16 +02:00
PREFER_NINJA
2018-06-10 16:26:25 +02: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 00:00:16 +02:00
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/shiva)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/shiva/LICENSE ${CURRENT_PACKAGES_DIR}/share/shiva/copyright)