Open microchips opened 3 years ago
Hi microchips, sorry, I have no experience with vcpkg. Any expert who can give advice?
Why dont you use it header-only? https://github.com/Profactor/cv-plot/blob/master/doc/integration.md#header-only
Werner,
Thanks for advise & email - I have it sorted now, Thank you. Nice work.
Stephen
On 1 Dec 2020, at 18:55, Werner Palfinger notifications@github.com wrote:
Why dont you use it header-only? https://github.com/Profactor/cv-plot/blob/master/doc/integration.md#header-only https://github.com/Profactor/cv-plot/blob/master/doc/integration.md#header-only — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Profactor/cv-plot/issues/13#issuecomment-736750489, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGKH656OCS6BJGWNZSLH2GLSSU3Z5ANCNFSM4UHS3ZKA.
Here is a starting point if someone wants to officially add to vcpkg.
vcpkg.json
{
"name": "cv-plot",
"version": "1.2.2",
"homepage": "https://github.com/Profactor/cv-plot",
"description": "Yes, another C++ plotting library.",
"license": "MIT",
"dependencies": [
{
"name" : "vcpkg-cmake",
"host" : true
},
{
"name" : "vcpkg-cmake-config",
"host" : true
},
"opencv"
]
}
portfile.cmake
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Profactor/cv-plot
REF "v${VERSION}"
SHA512 61002c2cead32be2f48b7244c3c1b76c527a64e77f40a99de54eae01ec9d699bc58147b12bf2edb28e6996d71fef32235f0d31818411c73fbf058429b598defc
HEAD_REF cmake-sample-lib
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DCVPLOT_USE_CONAN=OFF
)
vcpkg_cmake_install()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
trying to install libraries for cv-plot Not sure how - normally I'd use vcpkg but its not listed. Makefile reports error - something to do with conan?