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

[cxxgraph] Add new port CXXGraph #32696

Merged
merged 12 commits into from
Jul 25, 2023
16 changes: 16 additions & 0 deletions ports/cxxgraph/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Header-only library
QuantumFelidae marked this conversation as resolved.
Show resolved Hide resolved

vcpkg_from_github(
QuantumFelidae marked this conversation as resolved.
Show resolved Hide resolved
OUT_SOURCE_PATH SOURCE_PATH
REPO ZigRazor/CXXGraph
REF "v${VERSION}"
SHA512 a4409c81132e6c7e34022c54d9a57b965970aa8e1fcd97b9f916334c1d480674a526e7d5ad727ab652e4842083249dea89de519b104c1f9f205423eabd3c2338
HEAD_REF master
)

vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
# cxxgraph provides no targets and is a header only lib designed to be copied to include dir
file(INSTALL "${SOURCE_PATH}/include/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/cxxgraph")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/cxxgraph" RENAME copyright)
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

4 changes: 4 additions & 0 deletions ports/cxxgraph/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
To use CXXGraph header files:

find_path(CXXGRAPH_INCLUDE_DIR cxxgraph/CXXGraph.hpp)
target_include_directories(main PRIVATE ${CXXGRAPH_INCLUDE_DIR})
16 changes: 16 additions & 0 deletions ports/cxxgraph/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "cxxgraph",
"version": "2.0.0",
"description": "CXXGraph is a header only comprehensive C++ graph library.",
QuantumFelidae marked this conversation as resolved.
Show resolved Hide resolved
"homepage": "https://github.com/ZigRazor/CXXGraph",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1980,6 +1980,10 @@
"baseline": "1.2.6",
"port-version": 0
},
"cxxgraph": {
"baseline": "2.0.0",
"port-version": 0
},
"cxxopts": {
"baseline": "3.1.1",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/c-/cxxgraph.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "717846ff4f4394d7ac86bfbc424ea04503188d3f",
"version": "2.0.0",
"port-version": 0
}
]
}