vcpkg/ports/bfgroup-lyra/portfile.cmake

25 lines
713 B
CMake
Raw Normal View History

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO bfgroup/Lyra
2023-10-10 06:31:08 +08:00
REF "${VERSION}"
SHA512 643c25fbe996af2e888eacb99a715e3d420dbfc21d48756703cf301ab6ba0d1f8eea1cd0764bd5c173d2ddcef7c799448d8c3a77676024205163305e1363d461
HEAD_REF release
)
2023-10-10 06:31:08 +08:00
set(VCPKG_BUILD_TYPE release) # header-only port
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
2023-10-10 06:31:08 +08:00
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(
PACKAGE_NAME lyra
CONFIG_PATH share/lyra/cmake
)
2023-10-10 06:31:08 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
2023-10-10 06:31:08 +08:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")