diff options
Diffstat (limited to 'vcpkg/ports/rp-ntuples')
| -rw-r--r-- | vcpkg/ports/rp-ntuples/portfile.cmake | 34 | ||||
| -rw-r--r-- | vcpkg/ports/rp-ntuples/vcpkg.json | 11 |
2 files changed, 45 insertions, 0 deletions
diff --git a/vcpkg/ports/rp-ntuples/portfile.cmake b/vcpkg/ports/rp-ntuples/portfile.cmake new file mode 100644 index 0000000..c1f6eb1 --- /dev/null +++ b/vcpkg/ports/rp-ntuples/portfile.cmake @@ -0,0 +1,34 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO RPeschke/ntuples + REF "v${VERSION}" + SHA512 3c20387769f318fc92f154d30c88001d2e08a669b2b89a48262d1a53045b05a1256fb653bb1de9e84486a0dd0557e175e38414dfc54fc474db5941ac7ca44958 +) + +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) +]]) diff --git a/vcpkg/ports/rp-ntuples/vcpkg.json b/vcpkg/ports/rp-ntuples/vcpkg.json new file mode 100644 index 0000000..c2a9da7 --- /dev/null +++ b/vcpkg/ports/rp-ntuples/vcpkg.json @@ -0,0 +1,11 @@ +{ + "name": "rp-ntuples", + "version": "0.1.4", + "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" + ] +} |