mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 03:08:11 +08:00
28 lines
839 B
CMake
28 lines
839 B
CMake
if(VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO google/s2geometry
|
|
REF v0.11.0
|
|
SHA512 2d74c8e4dc74ac85b2c1b3d7c106a8b187510d90277d6c1fbc5f90ca1ab3eb949eea952d6df45c4b69e248e263bed01ea6a3aeab5d7aff341c5d904f343f6235
|
|
HEAD_REF main
|
|
PATCHES
|
|
Config.cmake.in.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DBUILD_EXAMPLES=OFF
|
|
-DBUILD_TESTS=OFF
|
|
)
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME s2)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/s2geometry" RENAME copyright)
|
|
file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/s2geometry")
|