Skip to content

VCPKG #13

Open
Open

Description

@microchips

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?

Activity

  1. wpalfi commented on Dec 1, 2020

    @wpalfi
    Contributor

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

  2. wpalfi commented on Dec 1, 2020

    @wpalfi
    Contributor
  3. added
    enhancementNew feature or request
    questionFurther information is requested
    on Dec 1, 2020
  4. microchips commented on Dec 2, 2020

    @microchips
    Author
  5. psi-mdube commented on Oct 23, 2024

    @psi-mdube

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions