diff options
Diffstat (limited to 'vcpkg/ports/cxxgraph')
| -rw-r--r-- | vcpkg/ports/cxxgraph/portfile.cmake | 15 | ||||
| -rw-r--r-- | vcpkg/ports/cxxgraph/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/cxxgraph/vcpkg.json | 16 |
3 files changed, 35 insertions, 0 deletions
diff --git a/vcpkg/ports/cxxgraph/portfile.cmake b/vcpkg/ports/cxxgraph/portfile.cmake new file mode 100644 index 0000000..9003aff --- /dev/null +++ b/vcpkg/ports/cxxgraph/portfile.cmake @@ -0,0 +1,15 @@ +set(VCPKG_BUILD_TYPE release) # Header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ZigRazor/CXXGraph
+ REF "v${VERSION}"
+ SHA512 81af9edbb3d768bf770a3626b411c753632763a1229fe87dbdca7c8d8f96554205abf527f0916bfe6dff47b5c19259345f2f9cad81bc84eb4d7972de75643af4
+ 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")
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
diff --git a/vcpkg/ports/cxxgraph/usage b/vcpkg/ports/cxxgraph/usage new file mode 100644 index 0000000..3e9c692 --- /dev/null +++ b/vcpkg/ports/cxxgraph/usage @@ -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})
diff --git a/vcpkg/ports/cxxgraph/vcpkg.json b/vcpkg/ports/cxxgraph/vcpkg.json new file mode 100644 index 0000000..459886b --- /dev/null +++ b/vcpkg/ports/cxxgraph/vcpkg.json @@ -0,0 +1,16 @@ +{ + "name": "cxxgraph", + "version": "4.1.0", + "description": "CXXGraph is a header only comprehensive C++ graph library.", + "homepage": "https://github.com/ZigRazor/CXXGraph", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |