Skip to content
34 changes: 34 additions & 0 deletions ports/rp-ntuples/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO RPeschke/ntuples
REF "v${VERSION}"
SHA512 0cd390e79640f0b03b5ac7b58ab52996a0a69f13cd52b404acf06601c2cf5788fe6ef8c082c35ed734fa4094a0b9543a6c07a1f6deaffd8a69475abbae7268dc
)

file(INSTALL "${SOURCE_PATH}/core/include" DESTINATION "${CURRENT_PACKAGES_DIR}/include")

file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/ntuples")
file(WRITE "${CURRENT_PACKAGES_DIR}/share/ntuples/ntuples-config.cmake"
[[if (TARGET ntuples::ntuples)
return()
endif()
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_DIR}/../.." ABSOLUTE)
add_library(ntuples INTERFACE)
add_library(ntuples::ntuples ALIAS ntuples)
target_include_directories(ntuples INTERFACE "${_IMPORT_PREFIX}/include")
target_compile_features(ntuples INTERFACE cxx_std_20)
]])

vcpkg_install_copyright(FILE_LIST
"${SOURCE_PATH}/LICENSE"
)

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

file(WRITE "${CURRENT_PACKAGES_DIR}/share/ntuples/usage"
[[rp-ntuples provides CMake targets:

find_package(ntuples CONFIG REQUIRED)
target_link_libraries(main PRIVATE ntuples::ntuples)
]])
11 changes: 11 additions & 0 deletions ports/rp-ntuples/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "rp-ntuples",
"version": "0.1.2",
"description": "A C++ ntuple library for structured data storage and processing",
"homepage": "https://github.com/RPeschke/ntuples",
"license": "MIT",
"dependencies": [
"vcpkg-cmake",
"vcpkg-cmake-config"
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -8456,6 +8456,10 @@
"baseline": "10.4.2",
"port-version": 0
},
"rp-ntuples": {
"baseline": "0.1.2",
"port-version": 0
},
"rpclib": {
"baseline": "2.3.0",
"port-version": 2
Expand Down
9 changes: 9 additions & 0 deletions versions/r-/rp-ntuples.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "afd4279ed872c3a026b31768100409ebaeb5c5e5",
"version": "0.1.2",
"port-version": 0
}
]
}