vcpkg/ports/visit-struct/portfile.cmake

25 lines
785 B
CMake
Raw Normal View History

#header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO cbeck88/visit_struct
REF "v${VERSION}"
SHA512 8d1f93344ef13320bc7967cbe2696bf49d6773fe3c89ba10bcf8ee9c33be165f14086828f6195bad742fbe75fee9c0995827c455c777950df583ff8f13c21338
HEAD_REF master
)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-visit_struct)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
file(INSTALL "${SOURCE_PATH}/LICENSE"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
RENAME copyright)
file(INSTALL "${SOURCE_PATH}/README.md"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")