VCPKG package support
korrix opened this issue · 2 comments
korrix commented
Please consider adding your library to vcpkg repository.
I have already prepared CONTROL
file for you:
Source: libe57format
Version: 2.1
Description: C++ library implementing E57 point cloud format
Homepage: https://github.com/asmaloney/libE57Format
Build-Depends: xerces-c
And portfile.cmake
:
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO asmaloney/libE57Format
REF v2.1
SHA512 92b433c85d8aa536b74045c917c589d3507dbb33b24fbe38f39124a504f27bacd7823801f163bccc8f233712337be37840c2d9f1e5c5da862a645fd60864a4aa
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/E57Format TARGET_PATH share/E57Format)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_copy_pdbs()
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
asmaloney commented
It looks like this request should go to the vcpkg repo? It doesn't look like I need to do anything in the repo for this?
I don't use vcpkg, so it's not something I would maintain, but if you want to do it, go for it!
asmaloney commented
If there is something that needs to go in the repo to support this, please open a pull request for it.