Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VCPKG #13

Open
microchips opened this issue Nov 30, 2020 · 4 comments
Open

VCPKG #13

microchips opened this issue Nov 30, 2020 · 4 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@microchips
Copy link

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?

@wpalfi
Copy link
Collaborator

wpalfi commented Dec 1, 2020

Hi microchips, sorry, I have no experience with vcpkg.
Any expert who can give advice?

@wpalfi
Copy link
Collaborator

wpalfi commented Dec 1, 2020

@wpalfi wpalfi added enhancement New feature or request question Further information is requested labels Dec 1, 2020
@microchips
Copy link
Author

microchips commented Dec 2, 2020 via email

@mdubepsi
Copy link

mdubepsi commented Oct 23, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants