mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-09 18:39:18 +08:00
93c0ba0e2c
* [visit-struct] Update to 1.1.0 and prefix targets with unofficial * [visit-struct] Update versions
25 lines
785 B
CMake
25 lines
785 B
CMake
#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}")
|