vcpkg/ports/copypp/portfile.cmake

26 lines
691 B
CMake
Raw Normal View History

set(VCPKG_BUILD_TYPE release) # header-only
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO i-curve/copypp
REF "v${VERSION}"
2023-12-07 06:01:53 +08:00
SHA512 cd96a310544dcd936126162de603c8a79c60e1ab9764e337704c3425096592b8e91e92ba9813f28f4838cd9b5f58e2e50cb7bce9a15d9b35c5c863693c32ae5d
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS "-DCOPYPP_TEST=OFF"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/copypp)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")