mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 11:41:36 +08:00
27 lines
787 B
CMake
27 lines
787 B
CMake
if(VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO AngusJohnson/Clipper2
|
|
REF "Clipper2_${VERSION}"
|
|
SHA512 6230861909f345abf06be1b9171af5e7a4b5fe5e749b8876ec0dda2966db7e06395b403f191a1322d85b8c6c624c5400a086b64779daa744ccdd531ff054380d
|
|
HEAD_REF main
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}/CPP"
|
|
OPTIONS
|
|
-DCLIPPER2_EXAMPLES=OFF
|
|
-DCLIPPER2_TESTS=OFF
|
|
-DCLIPPER2_UTILS=ON
|
|
)
|
|
vcpkg_cmake_install()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|