2023-02-03 12:04:34 +08:00
|
|
|
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}"
|
2024-01-25 01:42:40 +08:00
|
|
|
SHA512 64028ab0610dc2b44e48a299d8498de59807f36d8471c4758e3bbf87de682b0d0a29d027a495f36dd5432737cedc44f09a8336f0d620846d58616244c72e226c
|
2023-02-03 12:04:34 +08:00
|
|
|
HEAD_REF main
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/CPP"
|
2024-01-30 03:49:05 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2023-02-03 12:04:34 +08:00
|
|
|
OPTIONS
|
|
|
|
-DCLIPPER2_EXAMPLES=OFF
|
|
|
|
-DCLIPPER2_TESTS=OFF
|
2023-09-08 05:57:09 +08:00
|
|
|
-DCLIPPER2_UTILS=ON
|
2023-02-03 12:04:34 +08:00
|
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2023-02-25 03:57:40 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|